{
 "cells": [
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 高德API应用模块展现!\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "1. 地理/逆地理编码\n",
    "2. 路径规划\n",
    "3. 行政区域查询\n",
    "4. 搜索POI\n",
    "5. 静态地图\n",
    "6. IP定位\n",
    "7. 坐标转换\n",
    "8. 天气查询\n",
    "9. 输入提示\n",
    "10. 批量请求接口\n",
    "11. 交通态势\n",
    "12. 地理围栏\n",
    "13. 轨迹纠偏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 140,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pandas as pd\n",
    "import requests"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 141,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'info': 'OK', 'infocode': '10000', 'count': '1', 'geocodes': [{'formatted_address': '云南省昆明市官渡区美树星城', 'country': '中国', 'province': '云南省', 'citycode': '0871', 'city': '昆明市', 'district': '官渡区', 'township': [], 'neighborhood': {'name': [], 'type': []}, 'building': {'name': [], 'type': []}, 'adcode': '530111', 'street': [], 'number': [], 'location': '102.732156,25.024332', 'level': '兴趣点'}]}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>formatted_address</th>\n",
       "      <th>country</th>\n",
       "      <th>province</th>\n",
       "      <th>citycode</th>\n",
       "      <th>city</th>\n",
       "      <th>district</th>\n",
       "      <th>township</th>\n",
       "      <th>adcode</th>\n",
       "      <th>street</th>\n",
       "      <th>number</th>\n",
       "      <th>location</th>\n",
       "      <th>level</th>\n",
       "      <th>neighborhood.name</th>\n",
       "      <th>neighborhood.type</th>\n",
       "      <th>building.name</th>\n",
       "      <th>building.type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>云南省昆明市官渡区美树星城</td>\n",
       "      <td>中国</td>\n",
       "      <td>云南省</td>\n",
       "      <td>0871</td>\n",
       "      <td>昆明市</td>\n",
       "      <td>官渡区</td>\n",
       "      <td>[]</td>\n",
       "      <td>530111</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>102.732156,25.024332</td>\n",
       "      <td>兴趣点</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  formatted_address country province citycode city district township  adcode  \\\n",
       "0     云南省昆明市官渡区美树星城      中国      云南省     0871  昆明市      官渡区       []  530111   \n",
       "\n",
       "  street number              location level neighborhood.name  \\\n",
       "0     []     []  102.732156,25.024332   兴趣点                []   \n",
       "\n",
       "  neighborhood.type building.name building.type  \n",
       "0                []            []            []  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "美树星城地理编码: 102.732156,25.024332\n"
     ]
    }
   ],
   "source": [
    "key =\"9bddd2ca2cd9a740d789df864e5c026f\"\n",
    "def geocode(address,city=None,batch=None,sig=None)->dict:   \n",
    "    url = 'https://restapi.amap.com/v3/geocode/geo?parameters'\n",
    "    params={\n",
    "        'key': key,\n",
    "        'address':address,\n",
    "        'city':city,\n",
    "        'batch':batch,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "美树星城 = geocode(address='云南省昆明市官渡区美树星城')\n",
    "print(美树星城)\n",
    "df_美树星城地理编码 = pd.json_normalize(美树星城['geocodes'])\n",
    "display(df_美树星城地理编码)\n",
    "美树星城地理编码 = 美树星城['geocodes'][0]['location']\n",
    "print(\"美树星城地理编码:\",美树星城地理编码)"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 逆地理编码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 142,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'addressComponent': {'city': '昆明市', 'province': '云南省', 'adcode': '530111', 'district': '官渡区', 'towncode': '530111003000', 'streetNumber': {'number': '6号', 'location': '102.732163,25.0240289', 'direction': '南', 'distance': '33.707', 'street': '环城南路'}, 'country': '中国', 'township': '吴井街道', 'businessAreas': [{'location': '102.755034,25.036406', 'name': '金马', 'id': '530111'}, {'location': '102.727778,25.035558', 'name': '拓东', 'id': '530103'}, {'location': '102.743756,25.003479', 'name': '关上', 'id': '530111'}], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0871'}, 'formatted_address': '云南省昆明市官渡区吴井街道环城巷美树星城A座'}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>0</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>status</th>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>info</th>\n",
       "      <td>OK</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>infocode</th>\n",
       "      <td>10000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <td>昆明市</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <td>云南省</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <td>530111</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <td>官渡区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.towncode</th>\n",
       "      <td>530111003000</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.number</th>\n",
       "      <td>6号</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.location</th>\n",
       "      <td>102.732163,25.0240289</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.direction</th>\n",
       "      <td>南</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.distance</th>\n",
       "      <td>33.707</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.streetNumber.street</th>\n",
       "      <td>环城南路</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <td>中国</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <td>吴井街道</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <td>[{'location': '102.755034,25.036406', 'name': ...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <td>0871</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <td>云南省昆明市官渡区吴井街道环城巷美树星城A座</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                                                                                                   0\n",
       "status                                                                                             1\n",
       "info                                                                                              OK\n",
       "infocode                                                                                       10000\n",
       "regeocode.addressComponent.city                                                                  昆明市\n",
       "regeocode.addressComponent.province                                                              云南省\n",
       "regeocode.addressComponent.adcode                                                             530111\n",
       "regeocode.addressComponent.district                                                              官渡区\n",
       "regeocode.addressComponent.towncode                                                     530111003000\n",
       "regeocode.addressComponent.streetNumber.number                                                    6号\n",
       "regeocode.addressComponent.streetNumber.location                               102.732163,25.0240289\n",
       "regeocode.addressComponent.streetNumber.direction                                                  南\n",
       "regeocode.addressComponent.streetNumber.distance                                              33.707\n",
       "regeocode.addressComponent.streetNumber.street                                                  环城南路\n",
       "regeocode.addressComponent.country                                                                中国\n",
       "regeocode.addressComponent.township                                                             吴井街道\n",
       "regeocode.addressComponent.businessAreas           [{'location': '102.755034,25.036406', 'name': ...\n",
       "regeocode.addressComponent.building.name                                                          []\n",
       "regeocode.addressComponent.building.type                                                          []\n",
       "regeocode.addressComponent.neighborhood.name                                                      []\n",
       "regeocode.addressComponent.neighborhood.type                                                      []\n",
       "regeocode.addressComponent.citycode                                                             0871\n",
       "regeocode.formatted_address                                                   云南省昆明市官渡区吴井街道环城巷美树星城A座"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "import requests\n",
    "def regeocode(location,poitype=None,radius=None,extensions=\"base\",batch=False,roadlevel=None,sig=None,homeorcorp=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/geocode/regeo?parameters'\n",
    "    params={\n",
    "        'key': key,\n",
    "        'location':location,\n",
    "        'poitype':poitype,\n",
    "        'radius':radius,\n",
    "        'extensions':extensions,\n",
    "        'batch':batch,\n",
    "        'roadlevel':roadlevel,\n",
    "        'homeorcorp':homeorcorp,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data\n",
    "美树星城逆地理编码 = regeocode('102.732156,25.024332')\n",
    "print(美树星城逆地理编码)\n",
    "df_美树星城逆地理编码 = pd.json_normalize(美树星城逆地理编码).T\n",
    "display(df_美树星城逆地理编码)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 143,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'status': '1', 'regeocode': {'roads': [{'id': '0871G48F03600624157', 'location': '102.732,25.0243', 'direction': '西', 'name': '环城巷', 'distance': '23.749'}, {'id': '0871G48F03600634792', 'location': '102.731,25.0261', 'direction': '东南', 'name': '环城南巷', 'distance': '231.204'}, {'id': '0871G48F036006641966', 'location': '102.731,25.0262', 'direction': '东南', 'name': '环南巷', 'distance': '235.824'}], 'roadinters': [{'second_name': '环城南巷', 'first_id': '0871G48F03600624157', 'second_id': '0871G48F03600634792', 'location': '102.7308903,25.02606611', 'distance': '231.204', 'first_name': '环城巷', 'direction': '东南'}], 'formatted_address': '云南省昆明市官渡区吴井街道环城巷美树星城A座', 'addressComponent': {'city': '昆明市', 'province': '云南省', 'adcode': '530111', 'district': '官渡区', 'towncode': '530111003000', 'streetNumber': {'number': '6号', 'location': '102.732163,25.0240289', 'direction': '南', 'distance': '33.707', 'street': '环城南路'}, 'country': '中国', 'township': '吴井街道', 'businessAreas': [{'location': '102.755034,25.036406', 'name': '金马', 'id': '530111'}, {'location': '102.727778,25.035558', 'name': '拓东', 'id': '530103'}, {'location': '102.743756,25.003479', 'name': '关上', 'id': '530111'}], 'building': {'name': [], 'type': []}, 'neighborhood': {'name': [], 'type': []}, 'citycode': '0871'}, 'aois': [{'area': '2779.162072', 'type': '120302', 'id': 'B0FFF2HHVZ', 'location': '102.731811,25.024164', 'adcode': '530111', 'name': '美树星城A座', 'distance': '0'}, {'area': '8278.751879', 'type': '120302', 'id': 'B0FFGYGEGQ', 'location': '102.732483,25.024232', 'adcode': '530111', 'name': '美树星城', 'distance': '0'}, {'area': '4206.155701', 'type': '120302', 'id': 'B036709DQE', 'location': '102.732951,25.024301', 'adcode': '530111', 'name': '美树星城B座', 'distance': '28.658'}, {'area': '34154.664877', 'type': '120302', 'id': 'B036705JF4', 'location': '102.730699,25.024211', 'adcode': '530111', 'name': '绿洲花园(吴井路)', 'distance': '32.3724'}, {'area': '6788.209400', 'type': '120302', 'id': 'B03670W2UF', 'location': '102.732566,25.023557', 'adcode': '530111', 'name': '吴井新村(环城巷)', 'distance': '38.5271'}], 'pois': [{'id': 'B0FFGYGEGQ', 'direction': '东', 'businessarea': '金马', 'address': '环城巷绿洲花园附近', 'poiweight': '0.174381', 'name': '美树星城', 'location': '102.732483,25.024232', 'distance': '34.7696', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670YXHF', 'direction': '西', 'businessarea': '金马', 'address': '吴井路222号', 'poiweight': '0.260457', 'name': '绿洲花园幼儿园(吴井路)', 'location': '102.731556,25.024498', 'distance': '63.2157', 'tel': [], 'type': '科教文化服务;学校;幼儿园'}, {'id': 'B0FFG4HOYV', 'direction': '西', 'businessarea': '金马', 'address': '吴井路绿洲花园9-15', 'poiweight': '0.48', 'name': '一心堂(昆明吴井路五店)', 'location': '102.730084,25.024694', 'distance': '212.644', 'tel': [], 'type': '医疗保健服务;医疗保健服务场所;医疗保健服务场所'}, {'id': 'B036711NOL', 'direction': '东北', 'businessarea': '金马', 'address': '香樟俊园2期7幢10-11号', 'poiweight': '0.135015', 'name': '香樟俊园社区卫生服务站', 'location': '102.733438,25.025179', 'distance': '159.859', 'tel': '0871-63357829', 'type': '医疗保健服务;综合医院;卫生院'}, {'id': 'B036709BUC', 'direction': '西南', 'businessarea': '金马', 'address': '吴井路248号', 'poiweight': '0.48', 'name': 'V8假日酒店(吴井路)', 'location': '102.730671,25.022658', 'distance': '238.823', 'tel': '0871-63577868;0871-63533868', 'type': '住宿服务;宾馆酒店;四星级宾馆'}, {'id': 'B0FFG4FLHE', 'direction': '西', 'businessarea': '金马', 'address': '吴井路222号', 'poiweight': '0.204391', 'name': '南站幼儿园绿洲花园分园', 'location': '102.730505,25.023872', 'distance': '174.055', 'tel': '0871-63545033', 'type': '科教文化服务;学校;幼儿园'}, {'id': 'B0FFF62B7Z', 'direction': '东北', 'businessarea': '金马', 'address': '民航路26号香樟俊园二期5-6商铺2楼(具体请电话咨询)', 'poiweight': '0.178912', 'name': '源梦家舞蹈培训中心', 'location': '102.733728,25.025456', 'distance': '201.778', 'tel': '13629674801', 'type': '科教文化服务;培训机构;培训机构'}, {'id': 'B03670W2UF', 'direction': '东南', 'businessarea': '金马', 'address': '环城巷4号14-15幢', 'poiweight': '0.235997', 'name': '吴井新村(环城巷)', 'location': '102.732566,25.023557', 'distance': '95.5704', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670W3DM', 'direction': '西南', 'businessarea': '金马', 'address': '环城巷10-1号附近', 'poiweight': '0.101551', 'name': '中共吴井路社区支部委员会', 'location': '102.730863,25.023264', 'distance': '176.299', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'}, {'id': 'B0FFH5K5OI', 'direction': '西', 'businessarea': '金马', 'address': '环城巷绿洲花园9栋', 'poiweight': '0.13236', 'name': '民航路社区居委会', 'location': '102.730464,25.024951', 'distance': '183.887', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'}, {'id': 'B036705JF4', 'direction': '西', 'businessarea': '金马', 'address': '吴井路222', 'poiweight': '0.446763', 'name': '绿洲花园(吴井路)', 'location': '102.730699,25.024211', 'distance': '147.445', 'tel': '0871-63521238', 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670YZ4L', 'direction': '西', 'businessarea': '金马', 'address': '吴井办吴井路绿洲花园9幢35号', 'poiweight': '0.16975', 'name': '官渡孔俊辉口腔诊所', 'location': '102.730331,25.024853', 'distance': '192.803', 'tel': '13888826223', 'type': '医疗保健服务;专科医院;口腔医院'}, {'id': 'B03671121O', 'direction': '北', 'businessarea': '金马', 'address': '环城南路环城巷8号后', 'poiweight': '0.48', 'name': '鸿润酒店', 'location': '102.731396,25.026838', 'distance': '289.009', 'tel': '0871-63545988;0871-63546988', 'type': '住宿服务;宾馆酒店;五星级宾馆'}, {'id': 'B036706YIZ', 'direction': '西', 'businessarea': '金马', 'address': '吴井路绿洲花园198号', 'poiweight': '0.296961', 'name': '昆明官渡农村合作银行(金碧分理处)', 'location': '102.729442,25.024235', 'distance': '273.696', 'tel': '0871-63528965', 'type': '金融保险服务;银行;农村商业银行'}, {'id': 'B036709KD8', 'direction': '南', 'businessarea': '金马', 'address': '吴井路266号昆明市第三人民医院斜对面', 'poiweight': '0.399925', 'name': '天城园林居', 'location': '102.73174,25.02282', 'distance': '173.277', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670W1JD', 'direction': '东北', 'businessarea': '金马', 'address': '民航路26号香樟俊园5栋5-9号', 'poiweight': '0.346509', 'name': '中国农业银行(昆明五里多支行)', 'location': '102.734358,25.026078', 'distance': '294.834', 'tel': '0871-63311853;0871-63383075', 'type': '金融保险服务;银行;中国农业银行'}, {'id': 'B03670W1CT', 'direction': '东北', 'businessarea': '金马', 'address': '香樟俊园2期5幢2-3', 'poiweight': '0.273522', 'name': '中国银行(民航路支行)', 'location': '102.734106,25.026413', 'distance': '303.58', 'tel': '0871-63313358;0871-63318961', 'type': '金融保险服务;银行;中国银行'}, {'id': 'B0FFGI0KK3', 'direction': '西北', 'businessarea': '金马', 'address': '环城南巷与环城巷交叉口西100米', 'poiweight': '0.280934', 'name': '云路中心F座', 'location': '102.730255,25.026201', 'distance': '282.659', 'tel': [], 'type': '商务住宅;楼宇;商务写字楼'}, {'id': 'B0367071BK', 'direction': '西北', 'businessarea': '金马', 'address': '吴井路绿洲花园17栋一楼27-32号', 'poiweight': '0.252235', 'name': '一心堂(昆明吴井路三店)', 'location': '102.731193,25.025494', 'distance': '161.59', 'tel': '0871-63521569;0871-68211111', 'type': '医疗保健服务;医药保健销售店;药房'}, {'id': 'B03670YG2B', 'direction': '东北', 'businessarea': '金马', 'address': '民航路26号(国美电器旁)', 'poiweight': '0.196144', 'name': '香樟俊园Ⅱ', 'location': '102.733302,25.02595', 'distance': '213.785', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B036711NOK', 'direction': '东', 'businessarea': '金马', 'address': '民航路26号', 'poiweight': '0.212099', 'name': '香樟俊园1期', 'location': '102.734265,25.024756', 'distance': '217.666', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670Z6XW', 'direction': '西', 'businessarea': '金马', 'address': '吴井路188号', 'poiweight': '0.300173', 'name': '机电小区', 'location': '102.730053,25.025071', 'distance': '227.289', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B03670W2U1', 'direction': '西', 'businessarea': '金马', 'address': '吴井路188号', 'poiweight': '0.133742', 'name': '吴井大院', 'location': '102.73008,25.025188', 'distance': '229.835', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B0FFGI0NSJ', 'direction': '东北', 'businessarea': '金马', 'address': '吴井街道办事处', 'poiweight': '0.132654', 'name': '五里多社区居委会', 'location': '102.734504,25.025436', 'distance': '266.53', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'}, {'id': 'B0FFG720M6', 'direction': '东北', 'businessarea': '金马', 'address': '民航路185附近', 'poiweight': '0.131477', 'name': '中共五里多社区支部', 'location': '102.734504,25.025436', 'distance': '266.53', 'tel': [], 'type': '政府机构及社会团体;政府机关;乡镇以下级政府及事业单位'}, {'id': 'B036700481', 'direction': '东南', 'businessarea': '金马', 'address': '吴井路376号', 'poiweight': '0.300943', 'name': '百安园', 'location': '102.73345,25.02252', 'distance': '239.99', 'tel': [], 'type': '商务住宅;住宅区;住宅小区'}, {'id': 'B036703B0P', 'direction': '北', 'businessarea': '金马', 'address': '民航路26号', 'poiweight': '0.48', 'name': '旺穗酒店', 'location': '102.732349,25.027368', 'distance': '338.174', 'tel': '0871-63318668;0871-68211257', 'type': '住宿服务;宾馆酒店;四星级宾馆'}, {'id': 'B036709BTN', 'direction': '西北', 'businessarea': '金马', 'address': '环城南路环城巷7号', 'poiweight': '0.448287', 'name': '7天优品酒店(昆明环城南路店)', 'location': '102.731084,25.026102', 'distance': '224.526', 'tel': '0871-64884773;0871-66038001', 'type': '住宿服务;宾馆酒店;经济型连锁酒店'}, {'id': 'B036711NPD', 'direction': '西南', 'businessarea': '金马', 'address': '吴井路266号天城园林居4-5栋18号', 'poiweight': '0.18992', 'name': '一心堂(昆明吴井路一店)', 'location': '102.730314,25.023083', 'distance': '231.827', 'tel': '0871-63555886', 'type': '医疗保健服务;医药保健销售店;药房'}, {'id': 'B036706EWX', 'direction': '西南', 'businessarea': '金马', 'address': '吴井路198号绿洲花园2-1-020以及2-1-021号商铺', 'poiweight': '0.313038', 'name': '健之佳健康药房(百大城市理想店)', 'location': '102.730144,25.023297', 'distance': '233.143', 'tel': '0871-63523226', 'type': '医疗保健服务;医药保健销售店;药房'}]}, 'info': 'OK', 'infocode': '10000'}\n"
     ]
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>regeocode.roads</th>\n",
       "      <th>regeocode.roadinters</th>\n",
       "      <th>regeocode.formatted_address</th>\n",
       "      <th>regeocode.addressComponent.city</th>\n",
       "      <th>regeocode.addressComponent.province</th>\n",
       "      <th>regeocode.addressComponent.adcode</th>\n",
       "      <th>regeocode.addressComponent.district</th>\n",
       "      <th>...</th>\n",
       "      <th>regeocode.addressComponent.country</th>\n",
       "      <th>regeocode.addressComponent.township</th>\n",
       "      <th>regeocode.addressComponent.businessAreas</th>\n",
       "      <th>regeocode.addressComponent.building.name</th>\n",
       "      <th>regeocode.addressComponent.building.type</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.name</th>\n",
       "      <th>regeocode.addressComponent.neighborhood.type</th>\n",
       "      <th>regeocode.addressComponent.citycode</th>\n",
       "      <th>regeocode.aois</th>\n",
       "      <th>regeocode.pois</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>[{'id': '0871G48F03600624157', 'location': '10...</td>\n",
       "      <td>[{'second_name': '环城南巷', 'first_id': '0871G48F...</td>\n",
       "      <td>云南省昆明市官渡区吴井街道环城巷美树星城A座</td>\n",
       "      <td>昆明市</td>\n",
       "      <td>云南省</td>\n",
       "      <td>530111</td>\n",
       "      <td>官渡区</td>\n",
       "      <td>...</td>\n",
       "      <td>中国</td>\n",
       "      <td>吴井街道</td>\n",
       "      <td>[{'location': '102.755034,25.036406', 'name': ...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0871</td>\n",
       "      <td>[{'area': '2779.162072', 'type': '120302', 'id...</td>\n",
       "      <td>[{'id': 'B0FFGYGEGQ', 'direction': '东', 'busin...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>1 rows × 26 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode                                    regeocode.roads  \\\n",
       "0      1   OK    10000  [{'id': '0871G48F03600624157', 'location': '10...   \n",
       "\n",
       "                                regeocode.roadinters  \\\n",
       "0  [{'second_name': '环城南巷', 'first_id': '0871G48F...   \n",
       "\n",
       "  regeocode.formatted_address regeocode.addressComponent.city  \\\n",
       "0      云南省昆明市官渡区吴井街道环城巷美树星城A座                             昆明市   \n",
       "\n",
       "  regeocode.addressComponent.province regeocode.addressComponent.adcode  \\\n",
       "0                                 云南省                            530111   \n",
       "\n",
       "  regeocode.addressComponent.district  ... regeocode.addressComponent.country  \\\n",
       "0                                 官渡区  ...                                 中国   \n",
       "\n",
       "  regeocode.addressComponent.township  \\\n",
       "0                                吴井街道   \n",
       "\n",
       "            regeocode.addressComponent.businessAreas  \\\n",
       "0  [{'location': '102.755034,25.036406', 'name': ...   \n",
       "\n",
       "  regeocode.addressComponent.building.name  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.building.type  \\\n",
       "0                                       []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.name  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.neighborhood.type  \\\n",
       "0                                           []   \n",
       "\n",
       "  regeocode.addressComponent.citycode  \\\n",
       "0                                0871   \n",
       "\n",
       "                                      regeocode.aois  \\\n",
       "0  [{'area': '2779.162072', 'type': '120302', 'id...   \n",
       "\n",
       "                                      regeocode.pois  \n",
       "0  [{'id': 'B0FFGYGEGQ', 'direction': '东', 'busin...  \n",
       "\n",
       "[1 rows x 26 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "美树星城逆地理编码_all = regeocode(美树星城地理编码,extensions=\"all\")\n",
    "print(美树星城逆地理编码_all)\n",
    "df_美树星城逆地理编码_all = pd.json_normalize(美树星城逆地理编码_all)\n",
    "display(df_美树星城逆地理编码_all)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 144,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>direction</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0871G48F03600624157</td>\n",
       "      <td>102.732,25.0243</td>\n",
       "      <td>西</td>\n",
       "      <td>环城巷</td>\n",
       "      <td>23.749</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0871G48F03600634792</td>\n",
       "      <td>102.731,25.0261</td>\n",
       "      <td>东南</td>\n",
       "      <td>环城南巷</td>\n",
       "      <td>231.204</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0871G48F036006641966</td>\n",
       "      <td>102.731,25.0262</td>\n",
       "      <td>东南</td>\n",
       "      <td>环南巷</td>\n",
       "      <td>235.824</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                     id         location direction  name distance\n",
       "0   0871G48F03600624157  102.732,25.0243         西   环城巷   23.749\n",
       "1   0871G48F03600634792  102.731,25.0261        东南  环城南巷  231.204\n",
       "2  0871G48F036006641966  102.731,25.0262        东南   环南巷  235.824"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>second_name</th>\n",
       "      <th>first_id</th>\n",
       "      <th>second_id</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>first_name</th>\n",
       "      <th>direction</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>环城南巷</td>\n",
       "      <td>0871G48F03600624157</td>\n",
       "      <td>0871G48F03600634792</td>\n",
       "      <td>102.7308903,25.02606611</td>\n",
       "      <td>231.204</td>\n",
       "      <td>环城巷</td>\n",
       "      <td>东南</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  second_name             first_id            second_id  \\\n",
       "0        环城南巷  0871G48F03600624157  0871G48F03600634792   \n",
       "\n",
       "                  location distance first_name direction  \n",
       "0  102.7308903,25.02606611  231.204        环城巷        东南  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>area</th>\n",
       "      <th>type</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>distance</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>2779.162072</td>\n",
       "      <td>120302</td>\n",
       "      <td>B0FFF2HHVZ</td>\n",
       "      <td>102.731811,25.024164</td>\n",
       "      <td>530111</td>\n",
       "      <td>美树星城A座</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>8278.751879</td>\n",
       "      <td>120302</td>\n",
       "      <td>B0FFGYGEGQ</td>\n",
       "      <td>102.732483,25.024232</td>\n",
       "      <td>530111</td>\n",
       "      <td>美树星城</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>4206.155701</td>\n",
       "      <td>120302</td>\n",
       "      <td>B036709DQE</td>\n",
       "      <td>102.732951,25.024301</td>\n",
       "      <td>530111</td>\n",
       "      <td>美树星城B座</td>\n",
       "      <td>28.658</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>34154.664877</td>\n",
       "      <td>120302</td>\n",
       "      <td>B036705JF4</td>\n",
       "      <td>102.730699,25.024211</td>\n",
       "      <td>530111</td>\n",
       "      <td>绿洲花园(吴井路)</td>\n",
       "      <td>32.3724</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>6788.209400</td>\n",
       "      <td>120302</td>\n",
       "      <td>B03670W2UF</td>\n",
       "      <td>102.732566,25.023557</td>\n",
       "      <td>530111</td>\n",
       "      <td>吴井新村(环城巷)</td>\n",
       "      <td>38.5271</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "           area    type          id              location  adcode       name  \\\n",
       "0   2779.162072  120302  B0FFF2HHVZ  102.731811,25.024164  530111     美树星城A座   \n",
       "1   8278.751879  120302  B0FFGYGEGQ  102.732483,25.024232  530111       美树星城   \n",
       "2   4206.155701  120302  B036709DQE  102.732951,25.024301  530111     美树星城B座   \n",
       "3  34154.664877  120302  B036705JF4  102.730699,25.024211  530111  绿洲花园(吴井路)   \n",
       "4   6788.209400  120302  B03670W2UF  102.732566,25.023557  530111  吴井新村(环城巷)   \n",
       "\n",
       "  distance  \n",
       "0        0  \n",
       "1        0  \n",
       "2   28.658  \n",
       "3  32.3724  \n",
       "4  38.5271  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>direction</th>\n",
       "      <th>businessarea</th>\n",
       "      <th>address</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>name</th>\n",
       "      <th>location</th>\n",
       "      <th>distance</th>\n",
       "      <th>tel</th>\n",
       "      <th>type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFGYGEGQ</td>\n",
       "      <td>东</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城巷绿洲花园附近</td>\n",
       "      <td>0.174381</td>\n",
       "      <td>美树星城</td>\n",
       "      <td>102.732483,25.024232</td>\n",
       "      <td>34.7696</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B03670YXHF</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路222号</td>\n",
       "      <td>0.260457</td>\n",
       "      <td>绿洲花园幼儿园(吴井路)</td>\n",
       "      <td>102.731556,25.024498</td>\n",
       "      <td>63.2157</td>\n",
       "      <td>[]</td>\n",
       "      <td>科教文化服务;学校;幼儿园</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFG4HOYV</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路绿洲花园9-15</td>\n",
       "      <td>0.48</td>\n",
       "      <td>一心堂(昆明吴井路五店)</td>\n",
       "      <td>102.730084,25.024694</td>\n",
       "      <td>212.644</td>\n",
       "      <td>[]</td>\n",
       "      <td>医疗保健服务;医疗保健服务场所;医疗保健服务场所</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B036711NOL</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>香樟俊园2期7幢10-11号</td>\n",
       "      <td>0.135015</td>\n",
       "      <td>香樟俊园社区卫生服务站</td>\n",
       "      <td>102.733438,25.025179</td>\n",
       "      <td>159.859</td>\n",
       "      <td>0871-63357829</td>\n",
       "      <td>医疗保健服务;综合医院;卫生院</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B036709BUC</td>\n",
       "      <td>西南</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路248号</td>\n",
       "      <td>0.48</td>\n",
       "      <td>V8假日酒店(吴井路)</td>\n",
       "      <td>102.730671,25.022658</td>\n",
       "      <td>238.823</td>\n",
       "      <td>0871-63577868;0871-63533868</td>\n",
       "      <td>住宿服务;宾馆酒店;四星级宾馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFG4FLHE</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路222号</td>\n",
       "      <td>0.204391</td>\n",
       "      <td>南站幼儿园绿洲花园分园</td>\n",
       "      <td>102.730505,25.023872</td>\n",
       "      <td>174.055</td>\n",
       "      <td>0871-63545033</td>\n",
       "      <td>科教文化服务;学校;幼儿园</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFF62B7Z</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路26号香樟俊园二期5-6商铺2楼(具体请电话咨询)</td>\n",
       "      <td>0.178912</td>\n",
       "      <td>源梦家舞蹈培训中心</td>\n",
       "      <td>102.733728,25.025456</td>\n",
       "      <td>201.778</td>\n",
       "      <td>13629674801</td>\n",
       "      <td>科教文化服务;培训机构;培训机构</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B03670W2UF</td>\n",
       "      <td>东南</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城巷4号14-15幢</td>\n",
       "      <td>0.235997</td>\n",
       "      <td>吴井新村(环城巷)</td>\n",
       "      <td>102.732566,25.023557</td>\n",
       "      <td>95.5704</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B03670W3DM</td>\n",
       "      <td>西南</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城巷10-1号附近</td>\n",
       "      <td>0.101551</td>\n",
       "      <td>中共吴井路社区支部委员会</td>\n",
       "      <td>102.730863,25.023264</td>\n",
       "      <td>176.299</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFH5K5OI</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城巷绿洲花园9栋</td>\n",
       "      <td>0.13236</td>\n",
       "      <td>民航路社区居委会</td>\n",
       "      <td>102.730464,25.024951</td>\n",
       "      <td>183.887</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B036705JF4</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路222</td>\n",
       "      <td>0.446763</td>\n",
       "      <td>绿洲花园(吴井路)</td>\n",
       "      <td>102.730699,25.024211</td>\n",
       "      <td>147.445</td>\n",
       "      <td>0871-63521238</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B03670YZ4L</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井办吴井路绿洲花园9幢35号</td>\n",
       "      <td>0.16975</td>\n",
       "      <td>官渡孔俊辉口腔诊所</td>\n",
       "      <td>102.730331,25.024853</td>\n",
       "      <td>192.803</td>\n",
       "      <td>13888826223</td>\n",
       "      <td>医疗保健服务;专科医院;口腔医院</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B03671121O</td>\n",
       "      <td>北</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城南路环城巷8号后</td>\n",
       "      <td>0.48</td>\n",
       "      <td>鸿润酒店</td>\n",
       "      <td>102.731396,25.026838</td>\n",
       "      <td>289.009</td>\n",
       "      <td>0871-63545988;0871-63546988</td>\n",
       "      <td>住宿服务;宾馆酒店;五星级宾馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B036706YIZ</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路绿洲花园198号</td>\n",
       "      <td>0.296961</td>\n",
       "      <td>昆明官渡农村合作银行(金碧分理处)</td>\n",
       "      <td>102.729442,25.024235</td>\n",
       "      <td>273.696</td>\n",
       "      <td>0871-63528965</td>\n",
       "      <td>金融保险服务;银行;农村商业银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B036709KD8</td>\n",
       "      <td>南</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路266号昆明市第三人民医院斜对面</td>\n",
       "      <td>0.399925</td>\n",
       "      <td>天城园林居</td>\n",
       "      <td>102.73174,25.02282</td>\n",
       "      <td>173.277</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B03670W1JD</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路26号香樟俊园5栋5-9号</td>\n",
       "      <td>0.346509</td>\n",
       "      <td>中国农业银行(昆明五里多支行)</td>\n",
       "      <td>102.734358,25.026078</td>\n",
       "      <td>294.834</td>\n",
       "      <td>0871-63311853;0871-63383075</td>\n",
       "      <td>金融保险服务;银行;中国农业银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B03670W1CT</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>香樟俊园2期5幢2-3</td>\n",
       "      <td>0.273522</td>\n",
       "      <td>中国银行(民航路支行)</td>\n",
       "      <td>102.734106,25.026413</td>\n",
       "      <td>303.58</td>\n",
       "      <td>0871-63313358;0871-63318961</td>\n",
       "      <td>金融保险服务;银行;中国银行</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFGI0KK3</td>\n",
       "      <td>西北</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城南巷与环城巷交叉口西100米</td>\n",
       "      <td>0.280934</td>\n",
       "      <td>云路中心F座</td>\n",
       "      <td>102.730255,25.026201</td>\n",
       "      <td>282.659</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;楼宇;商务写字楼</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0367071BK</td>\n",
       "      <td>西北</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路绿洲花园17栋一楼27-32号</td>\n",
       "      <td>0.252235</td>\n",
       "      <td>一心堂(昆明吴井路三店)</td>\n",
       "      <td>102.731193,25.025494</td>\n",
       "      <td>161.59</td>\n",
       "      <td>0871-63521569;0871-68211111</td>\n",
       "      <td>医疗保健服务;医药保健销售店;药房</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B03670YG2B</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路26号(国美电器旁)</td>\n",
       "      <td>0.196144</td>\n",
       "      <td>香樟俊园Ⅱ</td>\n",
       "      <td>102.733302,25.02595</td>\n",
       "      <td>213.785</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>B036711NOK</td>\n",
       "      <td>东</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路26号</td>\n",
       "      <td>0.212099</td>\n",
       "      <td>香樟俊园1期</td>\n",
       "      <td>102.734265,25.024756</td>\n",
       "      <td>217.666</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>B03670Z6XW</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路188号</td>\n",
       "      <td>0.300173</td>\n",
       "      <td>机电小区</td>\n",
       "      <td>102.730053,25.025071</td>\n",
       "      <td>227.289</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>B03670W2U1</td>\n",
       "      <td>西</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路188号</td>\n",
       "      <td>0.133742</td>\n",
       "      <td>吴井大院</td>\n",
       "      <td>102.73008,25.025188</td>\n",
       "      <td>229.835</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>B0FFGI0NSJ</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井街道办事处</td>\n",
       "      <td>0.132654</td>\n",
       "      <td>五里多社区居委会</td>\n",
       "      <td>102.734504,25.025436</td>\n",
       "      <td>266.53</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>B0FFG720M6</td>\n",
       "      <td>东北</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路185附近</td>\n",
       "      <td>0.131477</td>\n",
       "      <td>中共五里多社区支部</td>\n",
       "      <td>102.734504,25.025436</td>\n",
       "      <td>266.53</td>\n",
       "      <td>[]</td>\n",
       "      <td>政府机构及社会团体;政府机关;乡镇以下级政府及事业单位</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>B036700481</td>\n",
       "      <td>东南</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路376号</td>\n",
       "      <td>0.300943</td>\n",
       "      <td>百安园</td>\n",
       "      <td>102.73345,25.02252</td>\n",
       "      <td>239.99</td>\n",
       "      <td>[]</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>B036703B0P</td>\n",
       "      <td>北</td>\n",
       "      <td>金马</td>\n",
       "      <td>民航路26号</td>\n",
       "      <td>0.48</td>\n",
       "      <td>旺穗酒店</td>\n",
       "      <td>102.732349,25.027368</td>\n",
       "      <td>338.174</td>\n",
       "      <td>0871-63318668;0871-68211257</td>\n",
       "      <td>住宿服务;宾馆酒店;四星级宾馆</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>B036709BTN</td>\n",
       "      <td>西北</td>\n",
       "      <td>金马</td>\n",
       "      <td>环城南路环城巷7号</td>\n",
       "      <td>0.448287</td>\n",
       "      <td>7天优品酒店(昆明环城南路店)</td>\n",
       "      <td>102.731084,25.026102</td>\n",
       "      <td>224.526</td>\n",
       "      <td>0871-64884773;0871-66038001</td>\n",
       "      <td>住宿服务;宾馆酒店;经济型连锁酒店</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>B036711NPD</td>\n",
       "      <td>西南</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路266号天城园林居4-5栋18号</td>\n",
       "      <td>0.18992</td>\n",
       "      <td>一心堂(昆明吴井路一店)</td>\n",
       "      <td>102.730314,25.023083</td>\n",
       "      <td>231.827</td>\n",
       "      <td>0871-63555886</td>\n",
       "      <td>医疗保健服务;医药保健销售店;药房</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>B036706EWX</td>\n",
       "      <td>西南</td>\n",
       "      <td>金马</td>\n",
       "      <td>吴井路198号绿洲花园2-1-020以及2-1-021号商铺</td>\n",
       "      <td>0.313038</td>\n",
       "      <td>健之佳健康药房(百大城市理想店)</td>\n",
       "      <td>102.730144,25.023297</td>\n",
       "      <td>233.143</td>\n",
       "      <td>0871-63523226</td>\n",
       "      <td>医疗保健服务;医药保健销售店;药房</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id direction businessarea                         address  \\\n",
       "0   B0FFGYGEGQ         东           金马                       环城巷绿洲花园附近   \n",
       "1   B03670YXHF         西           金马                         吴井路222号   \n",
       "2   B0FFG4HOYV         西           金马                     吴井路绿洲花园9-15   \n",
       "3   B036711NOL        东北           金马                  香樟俊园2期7幢10-11号   \n",
       "4   B036709BUC        西南           金马                         吴井路248号   \n",
       "5   B0FFG4FLHE         西           金马                         吴井路222号   \n",
       "6   B0FFF62B7Z        东北           金马    民航路26号香樟俊园二期5-6商铺2楼(具体请电话咨询)   \n",
       "7   B03670W2UF        东南           金马                     环城巷4号14-15幢   \n",
       "8   B03670W3DM        西南           金马                      环城巷10-1号附近   \n",
       "9   B0FFH5K5OI         西           金马                       环城巷绿洲花园9栋   \n",
       "10  B036705JF4         西           金马                          吴井路222   \n",
       "11  B03670YZ4L         西           金马                 吴井办吴井路绿洲花园9幢35号   \n",
       "12  B03671121O         北           金马                      环城南路环城巷8号后   \n",
       "13  B036706YIZ         西           金马                     吴井路绿洲花园198号   \n",
       "14  B036709KD8         南           金马             吴井路266号昆明市第三人民医院斜对面   \n",
       "15  B03670W1JD        东北           金马                民航路26号香樟俊园5栋5-9号   \n",
       "16  B03670W1CT        东北           金马                     香樟俊园2期5幢2-3   \n",
       "17  B0FFGI0KK3        西北           金马                环城南巷与环城巷交叉口西100米   \n",
       "18  B0367071BK        西北           金马              吴井路绿洲花园17栋一楼27-32号   \n",
       "19  B03670YG2B        东北           金马                   民航路26号(国美电器旁)   \n",
       "20  B036711NOK         东           金马                          民航路26号   \n",
       "21  B03670Z6XW         西           金马                         吴井路188号   \n",
       "22  B03670W2U1         西           金马                         吴井路188号   \n",
       "23  B0FFGI0NSJ        东北           金马                         吴井街道办事处   \n",
       "24  B0FFG720M6        东北           金马                        民航路185附近   \n",
       "25  B036700481        东南           金马                         吴井路376号   \n",
       "26  B036703B0P         北           金马                          民航路26号   \n",
       "27  B036709BTN        西北           金马                       环城南路环城巷7号   \n",
       "28  B036711NPD        西南           金马             吴井路266号天城园林居4-5栋18号   \n",
       "29  B036706EWX        西南           金马  吴井路198号绿洲花园2-1-020以及2-1-021号商铺   \n",
       "\n",
       "   poiweight               name              location distance  \\\n",
       "0   0.174381               美树星城  102.732483,25.024232  34.7696   \n",
       "1   0.260457       绿洲花园幼儿园(吴井路)  102.731556,25.024498  63.2157   \n",
       "2       0.48       一心堂(昆明吴井路五店)  102.730084,25.024694  212.644   \n",
       "3   0.135015        香樟俊园社区卫生服务站  102.733438,25.025179  159.859   \n",
       "4       0.48        V8假日酒店(吴井路)  102.730671,25.022658  238.823   \n",
       "5   0.204391        南站幼儿园绿洲花园分园  102.730505,25.023872  174.055   \n",
       "6   0.178912          源梦家舞蹈培训中心  102.733728,25.025456  201.778   \n",
       "7   0.235997          吴井新村(环城巷)  102.732566,25.023557  95.5704   \n",
       "8   0.101551       中共吴井路社区支部委员会  102.730863,25.023264  176.299   \n",
       "9    0.13236           民航路社区居委会  102.730464,25.024951  183.887   \n",
       "10  0.446763          绿洲花园(吴井路)  102.730699,25.024211  147.445   \n",
       "11   0.16975          官渡孔俊辉口腔诊所  102.730331,25.024853  192.803   \n",
       "12      0.48               鸿润酒店  102.731396,25.026838  289.009   \n",
       "13  0.296961  昆明官渡农村合作银行(金碧分理处)  102.729442,25.024235  273.696   \n",
       "14  0.399925              天城园林居    102.73174,25.02282  173.277   \n",
       "15  0.346509    中国农业银行(昆明五里多支行)  102.734358,25.026078  294.834   \n",
       "16  0.273522        中国银行(民航路支行)  102.734106,25.026413   303.58   \n",
       "17  0.280934             云路中心F座  102.730255,25.026201  282.659   \n",
       "18  0.252235       一心堂(昆明吴井路三店)  102.731193,25.025494   161.59   \n",
       "19  0.196144              香樟俊园Ⅱ   102.733302,25.02595  213.785   \n",
       "20  0.212099             香樟俊园1期  102.734265,25.024756  217.666   \n",
       "21  0.300173               机电小区  102.730053,25.025071  227.289   \n",
       "22  0.133742               吴井大院   102.73008,25.025188  229.835   \n",
       "23  0.132654           五里多社区居委会  102.734504,25.025436   266.53   \n",
       "24  0.131477          中共五里多社区支部  102.734504,25.025436   266.53   \n",
       "25  0.300943                百安园    102.73345,25.02252   239.99   \n",
       "26      0.48               旺穗酒店  102.732349,25.027368  338.174   \n",
       "27  0.448287    7天优品酒店(昆明环城南路店)  102.731084,25.026102  224.526   \n",
       "28   0.18992       一心堂(昆明吴井路一店)  102.730314,25.023083  231.827   \n",
       "29  0.313038   健之佳健康药房(百大城市理想店)  102.730144,25.023297  233.143   \n",
       "\n",
       "                            tel                         type  \n",
       "0                            []                商务住宅;住宅区;住宅小区  \n",
       "1                            []                科教文化服务;学校;幼儿园  \n",
       "2                            []     医疗保健服务;医疗保健服务场所;医疗保健服务场所  \n",
       "3                 0871-63357829              医疗保健服务;综合医院;卫生院  \n",
       "4   0871-63577868;0871-63533868              住宿服务;宾馆酒店;四星级宾馆  \n",
       "5                 0871-63545033                科教文化服务;学校;幼儿园  \n",
       "6                   13629674801             科教文化服务;培训机构;培训机构  \n",
       "7                            []                商务住宅;住宅区;住宅小区  \n",
       "8                            []  政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "9                            []  政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "10                0871-63521238                商务住宅;住宅区;住宅小区  \n",
       "11                  13888826223             医疗保健服务;专科医院;口腔医院  \n",
       "12  0871-63545988;0871-63546988              住宿服务;宾馆酒店;五星级宾馆  \n",
       "13                0871-63528965             金融保险服务;银行;农村商业银行  \n",
       "14                           []                商务住宅;住宅区;住宅小区  \n",
       "15  0871-63311853;0871-63383075             金融保险服务;银行;中国农业银行  \n",
       "16  0871-63313358;0871-63318961               金融保险服务;银行;中国银行  \n",
       "17                           []                商务住宅;楼宇;商务写字楼  \n",
       "18  0871-63521569;0871-68211111            医疗保健服务;医药保健销售店;药房  \n",
       "19                           []                商务住宅;住宅区;住宅小区  \n",
       "20                           []                商务住宅;住宅区;住宅小区  \n",
       "21                           []                商务住宅;住宅区;住宅小区  \n",
       "22                           []                商务住宅;住宅区;住宅小区  \n",
       "23                           []  政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "24                           []  政府机构及社会团体;政府机关;乡镇以下级政府及事业单位  \n",
       "25                           []                商务住宅;住宅区;住宅小区  \n",
       "26  0871-63318668;0871-68211257              住宿服务;宾馆酒店;四星级宾馆  \n",
       "27  0871-64884773;0871-66038001            住宿服务;宾馆酒店;经济型连锁酒店  \n",
       "28                0871-63555886            医疗保健服务;医药保健销售店;药房  \n",
       "29                0871-63523226            医疗保健服务;医药保健销售店;药房  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "roads = pd.json_normalize(美树星城逆地理编码_all['regeocode']['roads'])\n",
    "roadinters = pd.json_normalize(美树星城逆地理编码_all['regeocode']['roadinters'])\n",
    "aois = pd.json_normalize(美树星城逆地理编码_all['regeocode']['aois'])\n",
    "pois = pd.json_normalize(美树星城逆地理编码_all['regeocode']['pois'])\n",
    "\n",
    "display(roads,roadinters,aois,pois,)\n",
    "\n",
    "\n",
    "# aois：aoi信息列表请求参数\n",
    "# pois：poi信息列表请求参数\n",
    "# roadinters：道路交叉口列表 export：交叉路口到请求坐标的距离 单位：米 方位 输入点相对路口的方位 路口经纬度 第一条道路id 第一条道路名称 第二条道路id 第二条道路名称\n",
    "# roads：道路信息列表 export: 道路id 道路名称 道路到请求坐标的距离 单位：米 方位 坐标点"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 路径规划1之步行导航"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 145,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 步行导航\n",
    "def walking(origin,destination,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/walking?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 146,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(start)美树星城_location: 102.732156,25.024332 (end)昆明双塔_location: 102.832891,24.880095\n"
     ]
    }
   ],
   "source": [
    "# 输入目的地\n",
    "\n",
    "\n",
    "昆明双塔 = geocode('昆明双塔')\n",
    "昆明双塔_location = 昆明双塔['geocodes'][0]['location']\n",
    "美树星城_location = 美树星城['geocodes'][0]['location']\n",
    "print(\"(start)美树星城_location:\",美树星城_location,\"(end)昆明双塔_location:\",昆明双塔_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 147,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>instruction</th>\n",
       "      <th>orientation</th>\n",
       "      <th>road</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>action</th>\n",
       "      <th>assistant_action</th>\n",
       "      <th>walk_type</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>沿环城巷向东南步行611米左转</td>\n",
       "      <td>东南</td>\n",
       "      <td>环城巷</td>\n",
       "      <td>611</td>\n",
       "      <td>489</td>\n",
       "      <td>102.732387,25.024306;102.732483,25.024184;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>沿长润街向东北步行217米右转</td>\n",
       "      <td>东北</td>\n",
       "      <td>长润街</td>\n",
       "      <td>217</td>\n",
       "      <td>174</td>\n",
       "      <td>102.736081,25.019848;102.736233,25.019918;102....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>沿民航路向东南步行1901米向左前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>民航路</td>\n",
       "      <td>1901</td>\n",
       "      <td>1521</td>\n",
       "      <td>102.73806,25.020647;102.73885,25.019878;102.73...</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>沿关景路向东步行654米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>关景路</td>\n",
       "      <td>654</td>\n",
       "      <td>523</td>\n",
       "      <td>102.748503,25.006298;102.748845,25.00612;102.7...</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>沿雨龙路向东南步行1869米左转</td>\n",
       "      <td>东南</td>\n",
       "      <td>雨龙路</td>\n",
       "      <td>1869</td>\n",
       "      <td>1495</td>\n",
       "      <td>102.754944,25.006354;102.755421,25.006141;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>沿昌宏西路向东步行163米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>昌宏西路</td>\n",
       "      <td>163</td>\n",
       "      <td>130</td>\n",
       "      <td>102.762274,24.991966;102.762405,24.991966;102....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>向东南步行494米右转</td>\n",
       "      <td>东南</td>\n",
       "      <td>[]</td>\n",
       "      <td>494</td>\n",
       "      <td>395</td>\n",
       "      <td>102.763906,24.991949;102.764036,24.991706;102....</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>沿彩云北路向南步行90米向左前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>彩云北路</td>\n",
       "      <td>90</td>\n",
       "      <td>72</td>\n",
       "      <td>102.766411,24.988073;102.766411,24.987387;102....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>沿昆洛路向东南步行124米向右前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>昆洛路</td>\n",
       "      <td>124</td>\n",
       "      <td>99</td>\n",
       "      <td>102.766463,24.987257;102.766554,24.987179;102....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>沿昆洛路向东南步行2121米左转</td>\n",
       "      <td>东南</td>\n",
       "      <td>昆洛路</td>\n",
       "      <td>2121</td>\n",
       "      <td>1697</td>\n",
       "      <td>102.767309,24.986458;102.767452,24.986246;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>沿云秀路向东北步行48米右转</td>\n",
       "      <td>东北</td>\n",
       "      <td>云秀路</td>\n",
       "      <td>48</td>\n",
       "      <td>38</td>\n",
       "      <td>102.777999,24.969926;102.77832,24.970117;102.7...</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>沿昆洛公路向东南步行2276米直行</td>\n",
       "      <td>东南</td>\n",
       "      <td>昆洛公路</td>\n",
       "      <td>2276</td>\n",
       "      <td>1821</td>\n",
       "      <td>102.778411,24.970165;102.778477,24.970104;102....</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>沿昆洛路向南步行4798米直行</td>\n",
       "      <td>南</td>\n",
       "      <td>昆洛路</td>\n",
       "      <td>4798</td>\n",
       "      <td>3838</td>\n",
       "      <td>102.78951,24.952209;102.78954,24.95217;102.789...</td>\n",
       "      <td>直行</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>沿兴呈路向南步行308米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>兴呈路</td>\n",
       "      <td>308</td>\n",
       "      <td>246</td>\n",
       "      <td>102.792318,24.909657;102.792339,24.909614;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>沿彩云中路向东南步行3259米向左前方行走</td>\n",
       "      <td>东南</td>\n",
       "      <td>彩云中路</td>\n",
       "      <td>3259</td>\n",
       "      <td>2607</td>\n",
       "      <td>102.793251,24.907014;102.793898,24.906619;102....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>步行23米向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>23</td>\n",
       "      <td>18</td>\n",
       "      <td>102.821606,24.895078;102.821753,24.895065;102....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>沿石龙路向东步行12米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>石龙路</td>\n",
       "      <td>12</td>\n",
       "      <td>10</td>\n",
       "      <td>102.821827,24.89503;102.821949,24.895065</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>步行39米右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>39</td>\n",
       "      <td>31</td>\n",
       "      <td>102.821949,24.895061;102.822248,24.894839</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>向南步行78米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>[]</td>\n",
       "      <td>78</td>\n",
       "      <td>62</td>\n",
       "      <td>102.822248,24.894835;102.82217,24.894653;102.8...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>沿彩云中路向南步行1116米向左前方行走</td>\n",
       "      <td>南</td>\n",
       "      <td>彩云中路</td>\n",
       "      <td>1116</td>\n",
       "      <td>893</td>\n",
       "      <td>102.822066,24.894154;102.822096,24.893902;102....</td>\n",
       "      <td>向左前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>20</th>\n",
       "      <td>沿彩云中路步行51米左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>彩云中路</td>\n",
       "      <td>51</td>\n",
       "      <td>41</td>\n",
       "      <td>102.82543,24.884479;102.825603,24.884266;102.8...</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>21</th>\n",
       "      <td>沿春融街向东步行147米右转</td>\n",
       "      <td>东</td>\n",
       "      <td>春融街</td>\n",
       "      <td>147</td>\n",
       "      <td>118</td>\n",
       "      <td>102.82579,24.884149;102.827161,24.884583</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>22</th>\n",
       "      <td>步行11米</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>11</td>\n",
       "      <td>9</td>\n",
       "      <td>102.827161,24.884583;102.827214,24.884492</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>23</th>\n",
       "      <td>步行11米左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>11</td>\n",
       "      <td>9</td>\n",
       "      <td>102.827214,24.884488;102.827222,24.884388</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>24</th>\n",
       "      <td>沿春融街向东步行225米向右前方行走</td>\n",
       "      <td>东</td>\n",
       "      <td>春融街</td>\n",
       "      <td>225</td>\n",
       "      <td>180</td>\n",
       "      <td>102.827222,24.884384;102.829327,24.885061</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>25</th>\n",
       "      <td>沿和谐路步行78米向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>和谐路</td>\n",
       "      <td>78</td>\n",
       "      <td>62</td>\n",
       "      <td>102.829327,24.885061;102.829596,24.885026;102....</td>\n",
       "      <td>向右前方行走</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>26</th>\n",
       "      <td>沿和谐路向南步行653米左转</td>\n",
       "      <td>南</td>\n",
       "      <td>和谐路</td>\n",
       "      <td>653</td>\n",
       "      <td>522</td>\n",
       "      <td>102.829991,24.884748;102.830395,24.883672;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>27</th>\n",
       "      <td>沿吉安街向东步行59米左转</td>\n",
       "      <td>东</td>\n",
       "      <td>吉安街</td>\n",
       "      <td>59</td>\n",
       "      <td>47</td>\n",
       "      <td>102.832023,24.879128;102.832105,24.879145;102....</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>28</th>\n",
       "      <td>向北步行12米右转</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>12</td>\n",
       "      <td>10</td>\n",
       "      <td>102.832587,24.87928;102.832552,24.879379</td>\n",
       "      <td>右转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>29</th>\n",
       "      <td>向东步行43米左转</td>\n",
       "      <td>东</td>\n",
       "      <td>[]</td>\n",
       "      <td>43</td>\n",
       "      <td>34</td>\n",
       "      <td>102.832548,24.879379;102.832951,24.879501</td>\n",
       "      <td>左转</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>30</th>\n",
       "      <td>向北步行54米到达目的地</td>\n",
       "      <td>北</td>\n",
       "      <td>[]</td>\n",
       "      <td>54</td>\n",
       "      <td>43</td>\n",
       "      <td>102.832951,24.879501;102.832856,24.879852;102....</td>\n",
       "      <td>[]</td>\n",
       "      <td>到达目的地</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              instruction orientation  road distance duration  \\\n",
       "0         沿环城巷向东南步行611米左转          东南   环城巷      611      489   \n",
       "1         沿长润街向东北步行217米右转          东北   长润街      217      174   \n",
       "2    沿民航路向东南步行1901米向左前方行走          东南   民航路     1901     1521   \n",
       "3      沿关景路向东步行654米向右前方行走           东   关景路      654      523   \n",
       "4        沿雨龙路向东南步行1869米左转          东南   雨龙路     1869     1495   \n",
       "5         沿昌宏西路向东步行163米右转           东  昌宏西路      163      130   \n",
       "6             向东南步行494米右转          东南    []      494      395   \n",
       "7      沿彩云北路向南步行90米向左前方行走           南  彩云北路       90       72   \n",
       "8     沿昆洛路向东南步行124米向右前方行走          东南   昆洛路      124       99   \n",
       "9        沿昆洛路向东南步行2121米左转          东南   昆洛路     2121     1697   \n",
       "10         沿云秀路向东北步行48米右转          东北   云秀路       48       38   \n",
       "11      沿昆洛公路向东南步行2276米直行          东南  昆洛公路     2276     1821   \n",
       "12        沿昆洛路向南步行4798米直行           南   昆洛路     4798     3838   \n",
       "13         沿兴呈路向南步行308米左转           南   兴呈路      308      246   \n",
       "14  沿彩云中路向东南步行3259米向左前方行走          东南  彩云中路     3259     2607   \n",
       "15            步行23米向左前方行走          []    []       23       18   \n",
       "16          沿石龙路向东步行12米右转           东   石龙路       12       10   \n",
       "17                步行39米右转          []    []       39       31   \n",
       "18              向南步行78米左转           南    []       78       62   \n",
       "19   沿彩云中路向南步行1116米向左前方行走           南  彩云中路     1116      893   \n",
       "20           沿彩云中路步行51米左转          []  彩云中路       51       41   \n",
       "21         沿春融街向东步行147米右转           东   春融街      147      118   \n",
       "22                  步行11米          []    []       11        9   \n",
       "23                步行11米左转          []    []       11        9   \n",
       "24     沿春融街向东步行225米向右前方行走           东   春融街      225      180   \n",
       "25        沿和谐路步行78米向右前方行走          []   和谐路       78       62   \n",
       "26         沿和谐路向南步行653米左转           南   和谐路      653      522   \n",
       "27          沿吉安街向东步行59米左转           东   吉安街       59       47   \n",
       "28              向北步行12米右转           北    []       12       10   \n",
       "29              向东步行43米左转           东    []       43       34   \n",
       "30           向北步行54米到达目的地           北    []       54       43   \n",
       "\n",
       "                                             polyline  action  \\\n",
       "0   102.732387,25.024306;102.732483,25.024184;102....      左转   \n",
       "1   102.736081,25.019848;102.736233,25.019918;102....      右转   \n",
       "2   102.73806,25.020647;102.73885,25.019878;102.73...  向左前方行走   \n",
       "3   102.748503,25.006298;102.748845,25.00612;102.7...  向右前方行走   \n",
       "4   102.754944,25.006354;102.755421,25.006141;102....      左转   \n",
       "5   102.762274,24.991966;102.762405,24.991966;102....      右转   \n",
       "6   102.763906,24.991949;102.764036,24.991706;102....      右转   \n",
       "7   102.766411,24.988073;102.766411,24.987387;102....  向左前方行走   \n",
       "8   102.766463,24.987257;102.766554,24.987179;102....  向右前方行走   \n",
       "9   102.767309,24.986458;102.767452,24.986246;102....      左转   \n",
       "10  102.777999,24.969926;102.77832,24.970117;102.7...      右转   \n",
       "11  102.778411,24.970165;102.778477,24.970104;102....      直行   \n",
       "12  102.78951,24.952209;102.78954,24.95217;102.789...      直行   \n",
       "13  102.792318,24.909657;102.792339,24.909614;102....      左转   \n",
       "14  102.793251,24.907014;102.793898,24.906619;102....  向左前方行走   \n",
       "15  102.821606,24.895078;102.821753,24.895065;102....  向左前方行走   \n",
       "16           102.821827,24.89503;102.821949,24.895065      右转   \n",
       "17          102.821949,24.895061;102.822248,24.894839      右转   \n",
       "18  102.822248,24.894835;102.82217,24.894653;102.8...      左转   \n",
       "19  102.822066,24.894154;102.822096,24.893902;102....  向左前方行走   \n",
       "20  102.82543,24.884479;102.825603,24.884266;102.8...      左转   \n",
       "21           102.82579,24.884149;102.827161,24.884583      右转   \n",
       "22          102.827161,24.884583;102.827214,24.884492      []   \n",
       "23          102.827214,24.884488;102.827222,24.884388      左转   \n",
       "24          102.827222,24.884384;102.829327,24.885061  向右前方行走   \n",
       "25  102.829327,24.885061;102.829596,24.885026;102....  向右前方行走   \n",
       "26  102.829991,24.884748;102.830395,24.883672;102....      左转   \n",
       "27  102.832023,24.879128;102.832105,24.879145;102....      左转   \n",
       "28           102.832587,24.87928;102.832552,24.879379      右转   \n",
       "29          102.832548,24.879379;102.832951,24.879501      左转   \n",
       "30  102.832951,24.879501;102.832856,24.879852;102....      []   \n",
       "\n",
       "   assistant_action walk_type  \n",
       "0                []         0  \n",
       "1                []         0  \n",
       "2                []         0  \n",
       "3                []         0  \n",
       "4                []         0  \n",
       "5                []         0  \n",
       "6                []         0  \n",
       "7                []         0  \n",
       "8                []         0  \n",
       "9                []         0  \n",
       "10               []         0  \n",
       "11               []         0  \n",
       "12               []         0  \n",
       "13               []         0  \n",
       "14               []         0  \n",
       "15               []         0  \n",
       "16               []         0  \n",
       "17               []         1  \n",
       "18               []         0  \n",
       "19               []         0  \n",
       "20               []         0  \n",
       "21               []         0  \n",
       "22               []         1  \n",
       "23               []         0  \n",
       "24               []         0  \n",
       "25               []         0  \n",
       "26               []         0  \n",
       "27               []         0  \n",
       "28               []         0  \n",
       "29               []         0  \n",
       "30            到达目的地         0  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/plain": [
       "0           沿环城巷向东南步行611米左转\n",
       "1           沿长润街向东北步行217米右转\n",
       "2      沿民航路向东南步行1901米向左前方行走\n",
       "3        沿关景路向东步行654米向右前方行走\n",
       "4          沿雨龙路向东南步行1869米左转\n",
       "5           沿昌宏西路向东步行163米右转\n",
       "6               向东南步行494米右转\n",
       "7        沿彩云北路向南步行90米向左前方行走\n",
       "8       沿昆洛路向东南步行124米向右前方行走\n",
       "9          沿昆洛路向东南步行2121米左转\n",
       "10           沿云秀路向东北步行48米右转\n",
       "11        沿昆洛公路向东南步行2276米直行\n",
       "12          沿昆洛路向南步行4798米直行\n",
       "13           沿兴呈路向南步行308米左转\n",
       "14    沿彩云中路向东南步行3259米向左前方行走\n",
       "15              步行23米向左前方行走\n",
       "16            沿石龙路向东步行12米右转\n",
       "17                  步行39米右转\n",
       "18                向南步行78米左转\n",
       "19     沿彩云中路向南步行1116米向左前方行走\n",
       "20             沿彩云中路步行51米左转\n",
       "21           沿春融街向东步行147米右转\n",
       "22                    步行11米\n",
       "23                  步行11米左转\n",
       "24       沿春融街向东步行225米向右前方行走\n",
       "25          沿和谐路步行78米向右前方行走\n",
       "26           沿和谐路向南步行653米左转\n",
       "27            沿吉安街向东步行59米左转\n",
       "28                向北步行12米右转\n",
       "29                向东步行43米左转\n",
       "30             向北步行54米到达目的地\n",
       "Name: instruction, dtype: object"
      ]
     },
     "execution_count": 147,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "美树星城_汕头大学 = walking(美树星城_location,昆明双塔_location)\n",
    "df_步行 = pd.json_normalize(美树星城_汕头大学[\"route\"][\"paths\"][0]['steps'])\n",
    "display(df_步行)\n",
    "df_步行[\"instruction\"]\n",
    "# 再步行的路上 可以走一次人行横道，其他都是普通道路。又因为这段道路特殊的交通通道少，所以高德地图返回基本正确。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 路径规划2之公交车路线规划"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 148,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 公车导航\n",
    "def integrated(origin,destination,city,cityd=None,extensions='base',strategy=None,nightflag=0,date=None,time=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/direction/transit/integrated?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'origin':origin,\n",
    "        'destination':destination,\n",
    "        'city':city,\n",
    "        'cityd':cityd,\n",
    "        'extensions':extensions,\n",
    "        'strategy':strategy,\n",
    "        'nightflag':nightflag,\n",
    "        'date':date,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 149,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "(start)美树星城_location: 102.732156,25.024332 (end)昆明双塔_location: 102.832891,24.880095\n"
     ]
    }
   ],
   "source": [
    "昆明双塔 = geocode('昆明双塔')\n",
    "昆明双塔_location = 昆明双塔['geocodes'][0]['location']\n",
    "美树星城_location = 美树星城['geocodes'][0]['location']\n",
    "print(\"(start)美树星城_location:\",美树星城_location,\"(end)昆明双塔_location:\",昆明双塔_location)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 150,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>status</th>\n",
       "      <th>info</th>\n",
       "      <th>infocode</th>\n",
       "      <th>count</th>\n",
       "      <th>route.origin</th>\n",
       "      <th>route.destination</th>\n",
       "      <th>route.distance</th>\n",
       "      <th>route.taxi_cost</th>\n",
       "      <th>route.transits</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>1</td>\n",
       "      <td>OK</td>\n",
       "      <td>10000</td>\n",
       "      <td>5</td>\n",
       "      <td>102.732156,25.024332</td>\n",
       "      <td>102.832891,24.880095</td>\n",
       "      <td>24216</td>\n",
       "      <td>71.77984000000001</td>\n",
       "      <td>[{'cost': '4.0', 'duration': '3443', 'nightfla...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  status info infocode count          route.origin     route.destination  \\\n",
       "0      1   OK    10000     5  102.732156,25.024332  102.832891,24.880095   \n",
       "\n",
       "  route.distance    route.taxi_cost  \\\n",
       "0          24216  71.77984000000001   \n",
       "\n",
       "                                      route.transits  \n",
       "0  [{'cost': '4.0', 'duration': '3443', 'nightfla...  "
      ]
     },
     "execution_count": 150,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "美树星城_昆明双塔 = integrated(美树星城_location,昆明双塔_location,city='昆明',extensions='all')\n",
    "df_bus = pd.json_normalize(美树星城_昆明双塔)\n",
    "df_bus"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 151,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>cost</th>\n",
       "      <th>duration</th>\n",
       "      <th>nightflag</th>\n",
       "      <th>walking_distance</th>\n",
       "      <th>distance</th>\n",
       "      <th>missed</th>\n",
       "      <th>segments</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>4.0</td>\n",
       "      <td>3443</td>\n",
       "      <td>0</td>\n",
       "      <td>880</td>\n",
       "      <td>24254</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '102.73235...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>4.0</td>\n",
       "      <td>3880</td>\n",
       "      <td>0</td>\n",
       "      <td>1915</td>\n",
       "      <td>24251</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '102.73238...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>5.0</td>\n",
       "      <td>4468</td>\n",
       "      <td>0</td>\n",
       "      <td>2207</td>\n",
       "      <td>24680</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '102.73210...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>5.0</td>\n",
       "      <td>3864</td>\n",
       "      <td>0</td>\n",
       "      <td>875</td>\n",
       "      <td>24565</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '102.73210...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>5.0</td>\n",
       "      <td>4182</td>\n",
       "      <td>0</td>\n",
       "      <td>870</td>\n",
       "      <td>26919</td>\n",
       "      <td>1</td>\n",
       "      <td>[{'taxi': [], 'walking': {'origin': '102.73210...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  cost duration nightflag walking_distance distance missed  \\\n",
       "0  4.0     3443         0              880    24254      1   \n",
       "1  4.0     3880         0             1915    24251      1   \n",
       "2  5.0     4468         0             2207    24680      1   \n",
       "3  5.0     3864         0              875    24565      1   \n",
       "4  5.0     4182         0              870    26919      1   \n",
       "\n",
       "                                            segments  \n",
       "0  [{'taxi': [], 'walking': {'origin': '102.73235...  \n",
       "1  [{'taxi': [], 'walking': {'origin': '102.73238...  \n",
       "2  [{'taxi': [], 'walking': {'origin': '102.73210...  \n",
       "3  [{'taxi': [], 'walking': {'origin': '102.73210...  \n",
       "4  [{'taxi': [], 'walking': {'origin': '102.73210...  "
      ]
     },
     "execution_count": 151,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(美树星城_昆明双塔[\"route\"]['transits'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 152,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>taxi</th>\n",
       "      <th>entrance</th>\n",
       "      <th>exit</th>\n",
       "      <th>walking.origin</th>\n",
       "      <th>walking.destination</th>\n",
       "      <th>walking.distance</th>\n",
       "      <th>walking.duration</th>\n",
       "      <th>walking.steps</th>\n",
       "      <th>bus.buslines</th>\n",
       "      <th>railway.via_stops</th>\n",
       "      <th>railway.alters</th>\n",
       "      <th>railway.spaces</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>102.732353,25.024094</td>\n",
       "      <td>102.731781,25.021038</td>\n",
       "      <td>490</td>\n",
       "      <td>420</td>\n",
       "      <td>[{'instruction': '沿环城巷步行248米左转', 'road': '环城巷'...</td>\n",
       "      <td>[{'departure_stop': {'name': '吴井路', 'id': '530...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>102.832809,24.877157</td>\n",
       "      <td>102.832962,24.879921</td>\n",
       "      <td>390</td>\n",
       "      <td>334</td>\n",
       "      <td>[{'instruction': '沿和谐路步行230米右转', 'road': '和谐路'...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  taxi entrance exit        walking.origin   walking.destination  \\\n",
       "0   []       []   []  102.732353,25.024094  102.731781,25.021038   \n",
       "1   []       []   []  102.832809,24.877157  102.832962,24.879921   \n",
       "\n",
       "  walking.distance walking.duration  \\\n",
       "0              490              420   \n",
       "1              390              334   \n",
       "\n",
       "                                       walking.steps  \\\n",
       "0  [{'instruction': '沿环城巷步行248米左转', 'road': '环城巷'...   \n",
       "1  [{'instruction': '沿和谐路步行230米右转', 'road': '和谐路'...   \n",
       "\n",
       "                                        bus.buslines railway.via_stops  \\\n",
       "0  [{'departure_stop': {'name': '吴井路', 'id': '530...                []   \n",
       "1                                                 []                []   \n",
       "\n",
       "  railway.alters railway.spaces  \n",
       "0             []             []  \n",
       "1             []             []  "
      ]
     },
     "execution_count": 152,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "pd.json_normalize(美树星城_昆明双塔[\"route\"]['transits'][0]['segments'])"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 153,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>name</th>\n",
       "      <th>id</th>\n",
       "      <th>type</th>\n",
       "      <th>distance</th>\n",
       "      <th>duration</th>\n",
       "      <th>polyline</th>\n",
       "      <th>bustimetag</th>\n",
       "      <th>start_time</th>\n",
       "      <th>end_time</th>\n",
       "      <th>via_num</th>\n",
       "      <th>via_stops</th>\n",
       "      <th>departure_stop.name</th>\n",
       "      <th>departure_stop.id</th>\n",
       "      <th>departure_stop.location</th>\n",
       "      <th>arrival_stop.name</th>\n",
       "      <th>arrival_stop.id</th>\n",
       "      <th>arrival_stop.location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>202路(昆明站(站前路)--雨花公交枢纽站(大学城地铁站))</td>\n",
       "      <td>530100011294</td>\n",
       "      <td>普通公交线路</td>\n",
       "      <td>23374</td>\n",
       "      <td>2689</td>\n",
       "      <td>102.731804,25.021046;102.731804,25.021042;102....</td>\n",
       "      <td>2</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5</td>\n",
       "      <td>[{'name': '官渡广场(国贸路)', 'id': '530100011294005'...</td>\n",
       "      <td>吴井路</td>\n",
       "      <td>530100011294004</td>\n",
       "      <td>102.731804,25.021046</td>\n",
       "      <td>二号楼(和谐路)</td>\n",
       "      <td>530100011294017</td>\n",
       "      <td>102.832848,24.877018</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "                              name            id    type distance duration  \\\n",
       "0  202路(昆明站(站前路)--雨花公交枢纽站(大学城地铁站))  530100011294  普通公交线路    23374     2689   \n",
       "\n",
       "                                            polyline bustimetag start_time  \\\n",
       "0  102.731804,25.021046;102.731804,25.021042;102....          2         []   \n",
       "\n",
       "  end_time via_num                                          via_stops  \\\n",
       "0       []       5  [{'name': '官渡广场(国贸路)', 'id': '530100011294005'...   \n",
       "\n",
       "  departure_stop.name departure_stop.id departure_stop.location  \\\n",
       "0                 吴井路   530100011294004    102.731804,25.021046   \n",
       "\n",
       "  arrival_stop.name  arrival_stop.id arrival_stop.location  \n",
       "0          二号楼(和谐路)  530100011294017  102.832848,24.877018  "
      ]
     },
     "execution_count": 153,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_bus_乘车信息 = pd.json_normalize(美树星城_昆明双塔[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"])\n",
    "df_bus_乘车信息"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 154,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>地铁路线</th>\n",
       "      <th>id</th>\n",
       "      <th>location</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>官渡广场(国贸路)</td>\n",
       "      <td>530100011294005</td>\n",
       "      <td>102.743469,25.012106</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>新螺蛳湾公交枢纽站(彩云北路)</td>\n",
       "      <td>530100011294006</td>\n",
       "      <td>102.774582,24.928377</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>昆三中(春融东路)</td>\n",
       "      <td>530100011294007</td>\n",
       "      <td>102.834633,24.885811</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>市委(春融东路)</td>\n",
       "      <td>530100011294014</td>\n",
       "      <td>102.836334,24.881142</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>政务服务中心(锦绣大街)</td>\n",
       "      <td>530100011294016</td>\n",
       "      <td>102.836266,24.877327</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "              地铁路线               id              location\n",
       "0        官渡广场(国贸路)  530100011294005  102.743469,25.012106\n",
       "1  新螺蛳湾公交枢纽站(彩云北路)  530100011294006  102.774582,24.928377\n",
       "2        昆三中(春融东路)  530100011294007  102.834633,24.885811\n",
       "3         市委(春融东路)  530100011294014  102.836334,24.881142\n",
       "4     政务服务中心(锦绣大街)  530100011294016  102.836266,24.877327"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "_地铁路线 = pd.json_normalize(美树星城_昆明双塔[\"route\"]['transits'][0]['segments'][0]['bus'][\"buslines\"][0][\"via_stops\"]).rename(columns={\"name\":\"地铁路线\"})\n",
    "display(_地铁路线)\n",
    "\n",
    "\n",
    "# 太神奇了，可以直接看到你需要路进哪几个站，最后在春融街下车"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 行政区域"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 155,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 行政区域级别划分\n",
    "def district(keywords,subdistrict=None,page=None,offset=None,extensions='base',filter=None,)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/config/district?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'subdistrict':subdistrict,\n",
    "        'page':page,\n",
    "        'offset':offset,\n",
    "        'extensions':extensions,\n",
    "        'filter':filter,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 156,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0591</td>\n",
       "      <td>350100</td>\n",
       "      <td>福州市</td>\n",
       "      <td>119.306239,26.075302</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0591', 'adcode': '350121', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0593</td>\n",
       "      <td>350900</td>\n",
       "      <td>宁德市</td>\n",
       "      <td>119.527082,26.65924</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0593', 'adcode': '350924', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0597</td>\n",
       "      <td>350800</td>\n",
       "      <td>龙岩市</td>\n",
       "      <td>117.02978,25.091603</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0597', 'adcode': '350881', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0599</td>\n",
       "      <td>350700</td>\n",
       "      <td>南平市</td>\n",
       "      <td>118.178459,26.635627</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0599', 'adcode': '350723', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0592</td>\n",
       "      <td>350200</td>\n",
       "      <td>厦门市</td>\n",
       "      <td>118.11022,24.490474</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0592', 'adcode': '350203', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0596</td>\n",
       "      <td>350600</td>\n",
       "      <td>漳州市</td>\n",
       "      <td>117.661801,24.510897</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0596', 'adcode': '350629', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0594</td>\n",
       "      <td>350300</td>\n",
       "      <td>莆田市</td>\n",
       "      <td>119.007558,25.431011</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0594', 'adcode': '350302', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0595</td>\n",
       "      <td>350500</td>\n",
       "      <td>泉州市</td>\n",
       "      <td>118.589421,24.908853</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0595', 'adcode': '350526', 'nam...</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0598</td>\n",
       "      <td>350400</td>\n",
       "      <td>三明市</td>\n",
       "      <td>117.635001,26.265444</td>\n",
       "      <td>city</td>\n",
       "      <td>[{'citycode': '0598', 'adcode': '350402', 'nam...</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "  citycode  adcode name                center level  \\\n",
       "0     0591  350100  福州市  119.306239,26.075302  city   \n",
       "1     0593  350900  宁德市   119.527082,26.65924  city   \n",
       "2     0597  350800  龙岩市   117.02978,25.091603  city   \n",
       "3     0599  350700  南平市  118.178459,26.635627  city   \n",
       "4     0592  350200  厦门市   118.11022,24.490474  city   \n",
       "5     0596  350600  漳州市  117.661801,24.510897  city   \n",
       "6     0594  350300  莆田市  119.007558,25.431011  city   \n",
       "7     0595  350500  泉州市  118.589421,24.908853  city   \n",
       "8     0598  350400  三明市  117.635001,26.265444  city   \n",
       "\n",
       "                                           districts  \n",
       "0  [{'citycode': '0591', 'adcode': '350121', 'nam...  \n",
       "1  [{'citycode': '0593', 'adcode': '350924', 'nam...  \n",
       "2  [{'citycode': '0597', 'adcode': '350881', 'nam...  \n",
       "3  [{'citycode': '0599', 'adcode': '350723', 'nam...  \n",
       "4  [{'citycode': '0592', 'adcode': '350203', 'nam...  \n",
       "5  [{'citycode': '0596', 'adcode': '350629', 'nam...  \n",
       "6  [{'citycode': '0594', 'adcode': '350302', 'nam...  \n",
       "7  [{'citycode': '0595', 'adcode': '350526', 'nam...  \n",
       "8  [{'citycode': '0598', 'adcode': '350402', 'nam...  "
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "行政区域 = district(keywords='福建',extensions='all',subdistrict=2)\n",
    "df_行政区域_1级 = pd.json_normalize(行政区域[\"districts\"][0]['districts'])\n",
    "display(df_行政区域_1级,)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 157,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>citycode</th>\n",
       "      <th>adcode</th>\n",
       "      <th>name</th>\n",
       "      <th>center</th>\n",
       "      <th>level</th>\n",
       "      <th>districts</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>0598</td>\n",
       "      <td>350402</td>\n",
       "      <td>梅列区</td>\n",
       "      <td>117.63687,26.269208</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>0598</td>\n",
       "      <td>350403</td>\n",
       "      <td>三元区</td>\n",
       "      <td>117.607418,26.234191</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>0598</td>\n",
       "      <td>350429</td>\n",
       "      <td>泰宁县</td>\n",
       "      <td>117.177522,26.897995</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>0598</td>\n",
       "      <td>350423</td>\n",
       "      <td>清流县</td>\n",
       "      <td>116.815821,26.17761</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>0598</td>\n",
       "      <td>350481</td>\n",
       "      <td>永安市</td>\n",
       "      <td>117.364447,25.974075</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>0598</td>\n",
       "      <td>350424</td>\n",
       "      <td>宁化县</td>\n",
       "      <td>116.659725,26.259932</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>0598</td>\n",
       "      <td>350425</td>\n",
       "      <td>大田县</td>\n",
       "      <td>117.849355,25.690803</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>0598</td>\n",
       "      <td>350430</td>\n",
       "      <td>建宁县</td>\n",
       "      <td>116.845832,26.831398</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>0598</td>\n",
       "      <td>350426</td>\n",
       "      <td>尤溪县</td>\n",
       "      <td>118.188577,26.169261</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>0598</td>\n",
       "      <td>350427</td>\n",
       "      <td>沙县</td>\n",
       "      <td>117.789095,26.397361</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>0598</td>\n",
       "      <td>350421</td>\n",
       "      <td>明溪县</td>\n",
       "      <td>117.201845,26.357375</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>0598</td>\n",
       "      <td>350428</td>\n",
       "      <td>将乐县</td>\n",
       "      <td>117.473558,26.728667</td>\n",
       "      <td>district</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "   citycode  adcode name                center     level districts\n",
       "0      0598  350402  梅列区   117.63687,26.269208  district        []\n",
       "1      0598  350403  三元区  117.607418,26.234191  district        []\n",
       "2      0598  350429  泰宁县  117.177522,26.897995  district        []\n",
       "3      0598  350423  清流县   116.815821,26.17761  district        []\n",
       "4      0598  350481  永安市  117.364447,25.974075  district        []\n",
       "5      0598  350424  宁化县  116.659725,26.259932  district        []\n",
       "6      0598  350425  大田县  117.849355,25.690803  district        []\n",
       "7      0598  350430  建宁县  116.845832,26.831398  district        []\n",
       "8      0598  350426  尤溪县  118.188577,26.169261  district        []\n",
       "9      0598  350427   沙县  117.789095,26.397361  district        []\n",
       "10     0598  350421  明溪县  117.201845,26.357375  district        []\n",
       "11     0598  350428  将乐县  117.473558,26.728667  district        []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_行政区域_2级_福州 = pd.json_normalize(行政区域[\"districts\"][0]['districts'][8]['districts'])\n",
    "display(df_行政区域_2级_福州 )\n",
    "\n",
    "# 行政区域的查询一定更需要api平台的算法，因为它包含的是整个地区的一线 二线三线等地域。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 搜索POI（关键字）\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 158,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 搜索POI（关键字）\n",
    "def place_text(keywords,types,city=None,citylimit=None,children=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/text?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'citylimit':citylimit,\n",
    "        'children':children,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 159,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '489',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B03670WBHP',\n",
       "   'parent': 'B036709KCW',\n",
       "   'childtype': '312',\n",
       "   'name': '金鹰广场酒店自助餐',\n",
       "   'tag': '三文鱼,肥牛卷,仔羊腿,南美甜虾,生蚝,芝士焗青龙虾,小火锅,火腿豆焖饭,米线,人浓汤泉水生鱼锅,牛大柳,五花肉,蟹粉小丸子,带皮羊腩,傣香鸡,凉拌黑木耳,冰淇淋,金箔手撕鸡,四季豆煲鹅肝粒',\n",
       "   'type': '餐饮服务;中餐厅;海鲜酒楼',\n",
       "   'typecode': '050119',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '威远街168号金鹰广场酒店9层',\n",
       "   'location': '102.713681,25.040455',\n",
       "   'tel': '0871-65098720;0871-65098888',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_209498',\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-23 15:56:14',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '149.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f4a9021aa96032ce09805e153ed029d1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/bfc19894c1724ea9f7cc9a748844dd3f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/eaf2e01d4819d9d58f9d37577c907aa3'}]},\n",
       "  {'id': 'B0FFFRZUSK',\n",
       "   'parent': 'B0FFJMW1BP',\n",
       "   'childtype': '202',\n",
       "   'name': '佳客来牛排自助(正义坊店)',\n",
       "   'tag': '火锅,西冷牛排冰淇淋,黑椒牛扒,西瓜,果盘,麻辣烫涮菜,可乐鸡尾酒,巧克力小蛋糕,洋芋,鸡排布丁,冰淇淋玉米浓汤,自助餐,水果沙拉,冷饮,小点心,炸薯条,小卷粉,小糕点,冰激凌爆米花,寿司卷,餐后甜品,凉面冒菜,玉米浓汤海带汤,酸奶,火龙果',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路正义坊南馆3层',\n",
       "   'location': '102.709675,25.039541',\n",
       "   'tel': '0871-68880506',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_226160',\n",
       "   'entr_location': '102.709871,25.038869',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 18:51:12',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '64.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4465c145040e6c7b566a3bb0fcd1cac1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c5a48bf66f3e774dd8cac9dee15ee6d4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/28f6378a08fc13c2fa9b2e817b97a23e'}]},\n",
       "  {'id': 'B0FFFA6W2D',\n",
       "   'parent': 'B0367057PF',\n",
       "   'childtype': '201',\n",
       "   'name': '莱茵家乐自助餐厅(新西南广场)',\n",
       "   'tag': '自助牛扒,提拉米苏,巧克力喷泉,水果披萨,酸奶,糖醋里脊,烤鸡翅根,抹茶蛋糕,巧克力雪糕,五谷杂粮,涮菜,鸡扒,寿司,鸡蛋炒饭,凉拌海带面,牙签牛肉粒,炸鸡米花,流沙包,红酒宾治',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '人民中路17号新西南广场F6层',\n",
       "   'location': '102.715483,25.041901',\n",
       "   'tel': '0871-65368687',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702455700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_524053',\n",
       "   'entr_location': '102.714839,25.041303',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 03:27:40',\n",
       "   'alias': [],\n",
       "   'indoor_map': '1',\n",
       "   'indoor_data': {'cpid': 'B0367057PF',\n",
       "    'floor': '6',\n",
       "    'truefloor': 'F6',\n",
       "    'cmsid': '126580210600471_B0FFFA6W2D'},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '58.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/489a6507eaf67a2f5ac1c144c9996dd8'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/85f21493b5a967c93d531e3fde78c872'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/52b1e922715cea599eeb1e73015ba075'}]},\n",
       "  {'id': 'B0FFHEPO0C',\n",
       "   'parent': 'B03670865G',\n",
       "   'childtype': '202',\n",
       "   'name': '高品会牛排(正义坊总店)',\n",
       "   'tag': '澳洲菲力牛排,水果,薯条,风味牛排,炸鸡,鸡腿,寿司,布丁,沙拉,冰淇淋,自助餐,糕点,奶茶,牛肉,椰子汁,辣螃蟹,蛋挞甜点,海鲜,提拉米苏,黑椒7分熟,黑胡椒牛排,涮菜,高品会风味牛排,麻辣烫,椰子糕',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '光华街正义坊购物中心北馆2层',\n",
       "   'location': '102.709717,25.040644',\n",
       "   'tel': '0871-68121288;0871-63612966',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-03 03:26:17',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '59.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f402824fc28531dd8de605a361336e45'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/af3b32354ec84adaeff62ee6226be746'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f0e64b7bac6ddd213ed439fc1b92a3fc'}]},\n",
       "  {'id': 'B03670X4IE',\n",
       "   'parent': 'B03670865G',\n",
       "   'childtype': '202',\n",
       "   'name': '台北帮厨牛排沙拉吧(正义路)',\n",
       "   'tag': '黑椒牛排,奶冻,纽约客牛排,小蛋糕,鸡排,自助沙拉,鱼排,澳洲雪花牛排,冰淇淋,蔬菜沙拉,酸奶饮料,蛋糕甜品,寿司,提拉米苏,银耳汤,蛋挞,凉菜,爆炒花甲,西冷牛排,布丁,龟苓膏,奶酪,炸鸡块,炒面,炒饭',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路100号正义坊购物中心北馆3层',\n",
       "   'location': '102.709667,25.040707',\n",
       "   'tel': '0871-68077788',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_313008',\n",
       "   'entr_location': '102.709853,25.040713',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 07:50:47',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '62.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/412d22441a9df6943a486b2f9c724b97'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f08165e28c175187f86c7d5b0810567b'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/db55ab75d244a07b1e132daf93f07c43'}]},\n",
       "  {'id': 'B0FFHWDNT6',\n",
       "   'parent': 'B0FFM6CG6V',\n",
       "   'childtype': '202',\n",
       "   'name': '昆明捞一品重庆自助火锅',\n",
       "   'tag': '牛肉,毛肚,鸳鸯锅底,鸭肠,自助甜品小食,自助调料,牛蛙,黄辣丁,子母锅,肥羊,汤锅,鸭舌,鱼头,凉粉丝,卤鸭脖,脑花,鲜肉丸,三味锅,凉豆腐,紫菜包饭,鸡脚筋,午餐肉,鹌鹑蛋,苕粉,肥牛卷',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'typecode': '050117',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '人民中路17号昆明走廊一期商场第五层4K2-1-2、4K3-1-2号33号档口',\n",
       "   'location': '102.713254,25.041058',\n",
       "   'tel': '0871-66011805;15825256763',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '102.713074,25.041084',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 22:03:16',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '64.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0721d204ab565793ce76f81e7195c244'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2304138121198fbcb611e6f8d3a5f0a2'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8d1c558a0dcf5c6d1c4417734733f01e'}]},\n",
       "  {'id': 'B0FFH7JG4M',\n",
       "   'parent': 'B0FFM6CG6V',\n",
       "   'childtype': '202',\n",
       "   'name': '味尊老北京涮羊肉自助火锅店',\n",
       "   'tag': [],\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '护国街道办事处人民中路17号昆明走廊一期2层C1-C2号',\n",
       "   'location': '102.713512,25.041043',\n",
       "   'tel': '15911683145;0871-68050930;15908856586',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 09:11:13',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '5.0', 'cost': '39.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c6e5101183d3026b3f01fc624a13faa2'},\n",
       "    {'title': '西瓜片',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f85d3a91e7ef665bf0ed39cd62e89a5f'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8e7f45e2f830aa19d2d200dae4a339a1'}]},\n",
       "  {'id': 'B0FFGSFD4O',\n",
       "   'parent': 'B03670W3SP',\n",
       "   'childtype': '202',\n",
       "   'name': '鑫胖胖中餐厅(昆明走廊店)',\n",
       "   'tag': '烤五花肉,牛肉卷,大虾,鸡皮,蔬菜,鸡翅中,水果拼盘,小火锅,烧烤,豆腐,烤培根,清汤锅底,烤罗非鱼,鱿鱼,鸡脚筋,果汁,生菜,鸡肉串串,青菜拼盘,涮锅,肥羊,韩式烤肉,可乐雪碧,土豆,蘸酱',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '人民中路昆明走廊3楼左走廊二楼,电梯3楼',\n",
       "   'location': '102.713944,25.041028',\n",
       "   'tel': '0871-63525525;13708803838',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '102.713075,25.041033',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 04:34:36',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '58.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c9f22e66f7ef735ed718b5b11b809474'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4fb4208a4c854f936853e2d43a53f27d'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8407495197d7c2dcec9239d8f5dc5ef7'}]},\n",
       "  {'id': 'B0FFGG40HT',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '麦瑞缇牛排自助',\n",
       "   'tag': '牛排,贝壳花甲,小糕点,蓝莓慕斯蛋糕,巧克力小蛋糕,水果沙拉,蔬菜沙拉,提拉米苏蛋糕,鸡肉,麻辣虾,小米粥,榴莲冰淇淋蛋糕,紫菜包饭,扇贝,南瓜饼,花蛤,小点心,小布丁,自助餐,干锅基围虾,手剥笋,冰糖银耳雪梨,酸奶,煮玉米,自助调料',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '祥云街53号2楼',\n",
       "   'location': '102.712548,25.036671',\n",
       "   'tel': '0871-68391628',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454710',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_249970',\n",
       "   'entr_location': [],\n",
       "   'business_area': '金碧',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 18:42:27',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '54.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6d804b1bbe6e73ce2c7fab73d4060fcd'},\n",
       "    {'title': '菜品',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/250c0581e157547afa02733d95b23434'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b328e036ce64746a6485649b0e4af64b'}]},\n",
       "  {'id': 'B0FFJOG2LE',\n",
       "   'parent': 'B0FFJMW1BP',\n",
       "   'childtype': '202',\n",
       "   'name': 'SEA西雅图海鲜自助餐厅',\n",
       "   'tag': '基围虾,鲍鱼,牛排,三文鱼,螃蟹,刺身,鲜榨果汁,雪蟹腿,儿童晚餐,海参,八爪鱼,榴莲披萨,猪排,海蛏子,气泡酒,龙利鱼,儿童午餐,猪蹄',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '光华街与正义西街交叉口正义坊购物中心南馆2层2-10',\n",
       "   'location': '102.709570,25.038954',\n",
       "   'tel': '0871-65229668',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 11:05:05',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.5', 'cost': '146.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/846e2035e05542d2e0fbff703d610279'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b1205d12b1d16519065ef08cd28902e0'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8de46c4232d0fd1456c9f03a59e9fbf9'}]},\n",
       "  {'id': 'B0FFFRZUJP',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '佳客来牛排自助(青年路店)',\n",
       "   'tag': '黑椒牛排,冰激灵,春卷,哈蜜瓜,西冷经典牛排,火龙果,菲力牛排,银耳汤,提子,时蔬炒饭,西米露,炸洋芋,肉松面包,鸡爪,重庆辣子鸡,西红柿炒鸡蛋,柠檬鸡柳,成都回锅肉,韭菜炒香干,黄焖鸭,金针菇肉丝,滑蛋牛肉,香菇肉片,饭后水果拼盘,经典红烧肉',\n",
       "   'type': '餐饮服务;外国餐厅;牛扒店(扒房)',\n",
       "   'typecode': '050211',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '青年路428号绿岛商城3层',\n",
       "   'location': '102.715864,25.038991',\n",
       "   'tel': '0871-65151800',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454720',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_233506',\n",
       "   'entr_location': '102.716077,25.038888',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 11:15:32',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '48.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ef353390f2f58d3fe0b6a5fcb111ac77'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/4c23d7251fb22c9bd0d2464214bb70a0'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/0bf4d60bb2bcbce28956280aa89915b4'}]},\n",
       "  {'id': 'B0FFH94KWX',\n",
       "   'parent': 'B03670W3FY',\n",
       "   'childtype': '202',\n",
       "   'name': '金瓦台韩国自助烤肉(恒隆百货店)',\n",
       "   'tag': [],\n",
       "   'type': '餐饮服务;外国餐厅;韩国料理',\n",
       "   'typecode': '050203',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路20-36号景星恒隆百货第五楼',\n",
       "   'location': '102.709762,25.037676',\n",
       "   'tel': '0871-65526798;0871-65526797',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454612',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 05:28:30',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': '72.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/04a7d1e199c91a3a4cfd79964eefb5e5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/fca1561800b704dd11fa201528d2a835'},\n",
       "    {'title': '面点',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/cb0a473826279f95725b5f9b85d8102e'}]},\n",
       "  {'id': 'B0FFJ1F8RH',\n",
       "   'parent': 'B0FFJMW1BP',\n",
       "   'childtype': '202',\n",
       "   'name': '麦瑞缇海鲜牛排自助(正义店)',\n",
       "   'tag': '黑椒牛排,爆炒花甲,酥皮蛋挞,蛋糕布丁,海鲜,基围虾,火锅,寿司,牛排羊排,烤扇贝,酸奶,凉菜,蔬菜沙拉,儿童午餐,冰糖雪梨,西式面点,哈尔滨啤酒,预售美团(49元),酸角汁,椰子汁,押金,猪肝,杂粮,青口,酸汤锅底',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'typecode': '050200',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路正义坊南馆二楼',\n",
       "   'location': '102.709712,25.039598',\n",
       "   'tel': '0871-68120889',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '102.709682,25.039736',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 10:51:17',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '70.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/c982e035cf4ccaeb3e00a42beccf5265'},\n",
       "    {'title': '环境',\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a274071a605f5b622c1615244e1f8bcf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/64c4c4f22e1b61e64692701975e7cd94'}]},\n",
       "  {'id': 'B0FFJDJCCG',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '布尔牛排自助餐厅(正义坊店)',\n",
       "   'tag': '牛排,北京烤鸭,经典黑椒,甜点,特色烧烤,海鲜火锅,扇贝,生鱼片,鸡尾酒,原切羊排,红酒菲力,带骨小排,爆米花,蛤蜊,白灼虾,皮皮虾,冰淇淋,特色中西菜品,可怜而孤独的虾,成人晚餐,鱿鱼,鸡排,清淡小火锅,草原川辣牛排不限量,青口',\n",
       "   'type': '餐饮服务;外国餐厅;外国餐厅',\n",
       "   'typecode': '050200',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义坊西侧昆明老街正义坊A1幢4层15、16、17、18、19号5层10号、11号',\n",
       "   'location': '102.709469,25.040041',\n",
       "   'tel': '0871-65223303',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '102.709584,25.039732',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 06:59:26',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '79.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f5efbfd240a54085a1ba8e1162e6c947'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a697eab8aa0a7bc46fd00edc2d6cf750'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/6a7a21a8da28cbb9029bf0a79f686512'}]},\n",
       "  {'id': 'B0FFG19M64',\n",
       "   'parent': 'B03670865G',\n",
       "   'childtype': '202',\n",
       "   'name': '理想自助小火锅(正义坊店)',\n",
       "   'tag': '菠萝油,干炒牛河,虾饺,罗汉斋肠,红焖孖筋面,状元及第粥,牛肉肠粉,皮蛋廋肉粥,四宝饭,黄油,面包,清汤锅,咖喱鱼蛋,叉烧',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'typecode': '050117',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路100号正义坊购物中心北馆3楼',\n",
       "   'location': '102.709668,25.040707',\n",
       "   'tel': '0871-68369978',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_312247',\n",
       "   'entr_location': '102.709717,25.040775',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-31 13:18:52',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '57.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/85e1f4b4465f950d1ab82ef798f895b1'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/144a64d4ecac670cd012418a7fe633cf'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/89f410fd42dc4df25c0f325393235b90'}]},\n",
       "  {'id': 'B0FFK52PWW',\n",
       "   'parent': 'B03670865G',\n",
       "   'childtype': '202',\n",
       "   'name': '李朝园韩式料理自助(正义坊店)',\n",
       "   'tag': '特色烤五花肉,招牌烤肉串,烤肉串,韩式炒年糕,冷面,烤牛肉,招牌五花肉,松板肉,肥牛,牛排,黑椒鸡排,石锅拌饭,大鱿鱼,泡菜拌饭,烤鸡皮,李朝园烤肉,猪排,鱼丸,秋刀鱼,泡菜炒五花肉拌饭,大酱汤,海带汤,紫菜包饭,土豆煎饼,烟熏鹅肉',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '护国街道办事处正义路西侧昆明老街正义坊A1幢4层7号,5层6号、5层7号',\n",
       "   'location': '102.709419,25.040264',\n",
       "   'tel': '0871-65102517;18313965361',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 07:46:28',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '71.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/a1cd2d30f6056f867e51fa97da24c2fe'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/f482dbb9e84633a4e2abf133805cec18'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5f2fbec418a7feaa908165aae2f18c57'}]},\n",
       "  {'id': 'B0FFHHVJGI',\n",
       "   'parent': 'B036706ZYB',\n",
       "   'childtype': '201',\n",
       "   'name': '大赤门(柏联广场)',\n",
       "   'tag': '哈根达斯,烤扇贝生蚝,牛扒,炭烤生蚝,帝王蟹脚,冰淇淋,北极贝三文鱼,生鱼片,烧烤l,焗龙虾,大闸蟹,海鲜刺身,泰式小火锅,饮料果汁,泡鲁达,自己烤,鲍鱼,文鱼面,螃蟹腿,烤羊排,柠檬水,乌冬面,杨枝甘露,对虾',\n",
       "   'type': '餐饮服务;中餐厅;特色/地方风味餐厅',\n",
       "   'typecode': '050118',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '三市街6号柏联广场F6层',\n",
       "   'location': '102.710424,25.035545',\n",
       "   'tel': '0871-68572933',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454602',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_236344',\n",
       "   'entr_location': '102.710022,25.035351',\n",
       "   'business_area': '金碧',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 04:11:36',\n",
       "   'alias': [],\n",
       "   'indoor_map': '1',\n",
       "   'indoor_data': {'cpid': 'B036706ZYB',\n",
       "    'floor': '6',\n",
       "    'truefloor': 'F6',\n",
       "    'cmsid': 'GD0011040210600084'},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '188.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/87bda0cc7e0e14876835898d7535fb55'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/2ec0065bad72de9ef4bf46a68e9bc23c'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/109e52e9cde5949618d3844c620e1265'}]},\n",
       "  {'id': 'B0FFHQ757S',\n",
       "   'parent': 'B03670865G',\n",
       "   'childtype': '202',\n",
       "   'name': '火遇自助重庆火锅(正义坊店)',\n",
       "   'tag': '黄辣丁,油碟,老板娘私人订制虾,清淡型的加多宝',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '正义路100号正义坊购物中心北馆2层',\n",
       "   'location': '102.709687,25.040354',\n",
       "   'tel': '0871-68121260;13987165684',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454622',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': '102.709683,25.040777',\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-03-20 18:00:24',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.0', 'cost': '62.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/ea84b9acf6d4807412661073dae1a837'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/762d6097d567f87f7d725e5f7b155d27'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/42aaecae7d8de705fe0adcb6576835fe'}]},\n",
       "  {'id': 'B0FFGZUHDQ',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '丰悦海鲜自助(昆明总店)(暂停营业)',\n",
       "   'tag': '炸泥鳅,凉拌花螺,丸子,小黄鱼,油炸小酥鱼,八爪鱼,凉拌海蜇皮,刀鱼,哈密瓜,大虾,寿司,小汤圆,小炒肉,年糕,提拉米苏,果汁,海贝汤,涮羊肉涮牛肉,炒饭,烧烤肉,生菜包五花肉,田螺肉,糖醋肉,糯米糕,红烧肉',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '小花园青年路与人民中路交叉处苏宁易购五楼',\n",
       "   'location': '102.715376,25.042969',\n",
       "   'tel': [],\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702455700',\n",
       "   'distance': [],\n",
       "   'navi_poiid': [],\n",
       "   'entr_location': [],\n",
       "   'business_area': [],\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-09 16:03:37',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '3.5', 'cost': '56.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d07bef748e994f719c15835c62f92aa4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/99f8ffb2b9234edaa56e6dfddb4896f4'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/b2023e63cc1eebe873864175ea0391f2'}]},\n",
       "  {'id': 'B0FFH0I38Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '重庆土贼自助老火锅(顺城店)',\n",
       "   'tag': '火锅,毛肚,土贼嫩牛肉,美国肥牛,鸭肠,千层肚,鸳鸯锅,麻辣牛肉,饮料酒水,鲜虾,水果,酸奶,土贼肥肠,麻辣锅底,蔬菜,九宫格锅底,黄辣丁,猪肉丸子,虾子,三线肉,牛丸,蘸碟,黄鳝,川味凉糕,牛蛙',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'typecode': '050117',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '大观街道东风西路19号五华大厦1层',\n",
       "   'location': '102.706174,25.036590',\n",
       "   'tel': '0871-63632293;18812273382;15608326256',\n",
       "   'postcode': [],\n",
       "   'website': [],\n",
       "   'email': [],\n",
       "   'pcode': '530000',\n",
       "   'pname': '云南省',\n",
       "   'citycode': '0871',\n",
       "   'cityname': '昆明市',\n",
       "   'adcode': '530102',\n",
       "   'adname': '五华区',\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'gridcode': '3702454611',\n",
       "   'distance': [],\n",
       "   'navi_poiid': 'G48F036006_495018',\n",
       "   'entr_location': [],\n",
       "   'business_area': '金碧',\n",
       "   'exit_location': [],\n",
       "   'match': '0',\n",
       "   'recommend': '0',\n",
       "   'timestamp': '2020-04-23 18:42:28',\n",
       "   'alias': [],\n",
       "   'indoor_map': '0',\n",
       "   'indoor_data': {'cpid': [], 'floor': [], 'truefloor': [], 'cmsid': []},\n",
       "   'groupbuy_num': '0',\n",
       "   'discount_num': '0',\n",
       "   'biz_ext': {'rating': '4.0', 'cost': '69.00', 'meal_ordering': '0'},\n",
       "   'event': [],\n",
       "   'children': [],\n",
       "   'photos': [{'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/5bb2e81f741285dc4d2f239f93804555'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/8f11d81e90485afc5d682718747ebdf5'},\n",
       "    {'title': [],\n",
       "     'url': 'http://store.is.autonavi.com/showpic/d32d6459f0eb6358472a56d64fba8f11'}]}]}"
      ]
     },
     "execution_count": 159,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "自助餐 = place_text('自助餐','自助餐',city=\"昆明\",children=1,extensions='all')\n",
    "自助餐"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 160,
   "metadata": {
    "scrolled": false
   },
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>tag</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>...</th>\n",
       "      <th>event</th>\n",
       "      <th>children</th>\n",
       "      <th>photos</th>\n",
       "      <th>indoor_data.cpid</th>\n",
       "      <th>indoor_data.floor</th>\n",
       "      <th>indoor_data.truefloor</th>\n",
       "      <th>indoor_data.cmsid</th>\n",
       "      <th>biz_ext.rating</th>\n",
       "      <th>biz_ext.cost</th>\n",
       "      <th>biz_ext.meal_ordering</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B03670WBHP</td>\n",
       "      <td>B036709KCW</td>\n",
       "      <td>312</td>\n",
       "      <td>金鹰广场酒店自助餐</td>\n",
       "      <td>三文鱼,肥牛卷,仔羊腿,南美甜虾,生蚝,芝士焗青龙虾,小火锅,火腿豆焖饭,米线,人浓汤泉水生...</td>\n",
       "      <td>餐饮服务;中餐厅;海鲜酒楼</td>\n",
       "      <td>050119</td>\n",
       "      <td>diner</td>\n",
       "      <td>威远街168号金鹰广场酒店9层</td>\n",
       "      <td>102.713681,25.040455</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>149.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFFRZUSK</td>\n",
       "      <td>B0FFJMW1BP</td>\n",
       "      <td>202</td>\n",
       "      <td>佳客来牛排自助(正义坊店)</td>\n",
       "      <td>火锅,西冷牛排冰淇淋,黑椒牛扒,西瓜,果盘,麻辣烫涮菜,可乐鸡尾酒,巧克力小蛋糕,洋芋,鸡排...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路正义坊南馆3层</td>\n",
       "      <td>102.709675,25.039541</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>64.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFFA6W2D</td>\n",
       "      <td>B0367057PF</td>\n",
       "      <td>201</td>\n",
       "      <td>莱茵家乐自助餐厅(新西南广场)</td>\n",
       "      <td>自助牛扒,提拉米苏,巧克力喷泉,水果披萨,酸奶,糖醋里脊,烤鸡翅根,抹茶蛋糕,巧克力雪糕,五...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>人民中路17号新西南广场F6层</td>\n",
       "      <td>102.715483,25.041901</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>B0367057PF</td>\n",
       "      <td>6</td>\n",
       "      <td>F6</td>\n",
       "      <td>126580210600471_B0FFFA6W2D</td>\n",
       "      <td>4.0</td>\n",
       "      <td>58.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B0FFHEPO0C</td>\n",
       "      <td>B03670865G</td>\n",
       "      <td>202</td>\n",
       "      <td>高品会牛排(正义坊总店)</td>\n",
       "      <td>澳洲菲力牛排,水果,薯条,风味牛排,炸鸡,鸡腿,寿司,布丁,沙拉,冰淇淋,自助餐,糕点,奶茶...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>光华街正义坊购物中心北馆2层</td>\n",
       "      <td>102.709717,25.040644</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>59.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B03670X4IE</td>\n",
       "      <td>B03670865G</td>\n",
       "      <td>202</td>\n",
       "      <td>台北帮厨牛排沙拉吧(正义路)</td>\n",
       "      <td>黑椒牛排,奶冻,纽约客牛排,小蛋糕,鸡排,自助沙拉,鱼排,澳洲雪花牛排,冰淇淋,蔬菜沙拉,酸...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路100号正义坊购物中心北馆3层</td>\n",
       "      <td>102.709667,25.040707</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>62.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFHWDNT6</td>\n",
       "      <td>B0FFM6CG6V</td>\n",
       "      <td>202</td>\n",
       "      <td>昆明捞一品重庆自助火锅</td>\n",
       "      <td>牛肉,毛肚,鸳鸯锅底,鸭肠,自助甜品小食,自助调料,牛蛙,黄辣丁,子母锅,肥羊,汤锅,鸭舌,...</td>\n",
       "      <td>餐饮服务;中餐厅;火锅店</td>\n",
       "      <td>050117</td>\n",
       "      <td>diner</td>\n",
       "      <td>人民中路17号昆明走廊一期商场第五层4K2-1-2、4K3-1-2号33号档口</td>\n",
       "      <td>102.713254,25.041058</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>64.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFH7JG4M</td>\n",
       "      <td>B0FFM6CG6V</td>\n",
       "      <td>202</td>\n",
       "      <td>味尊老北京涮羊肉自助火锅店</td>\n",
       "      <td>[]</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>护国街道办事处人民中路17号昆明走廊一期2层C1-C2号</td>\n",
       "      <td>102.713512,25.041043</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>5.0</td>\n",
       "      <td>39.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B0FFGSFD4O</td>\n",
       "      <td>B03670W3SP</td>\n",
       "      <td>202</td>\n",
       "      <td>鑫胖胖中餐厅(昆明走廊店)</td>\n",
       "      <td>烤五花肉,牛肉卷,大虾,鸡皮,蔬菜,鸡翅中,水果拼盘,小火锅,烧烤,豆腐,烤培根,清汤锅底,...</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>人民中路昆明走廊3楼左走廊二楼,电梯3楼</td>\n",
       "      <td>102.713944,25.041028</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>58.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B0FFGG40HT</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>麦瑞缇牛排自助</td>\n",
       "      <td>牛排,贝壳花甲,小糕点,蓝莓慕斯蛋糕,巧克力小蛋糕,水果沙拉,蔬菜沙拉,提拉米苏蛋糕,鸡肉,...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>祥云街53号2楼</td>\n",
       "      <td>102.712548,25.036671</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>54.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFJOG2LE</td>\n",
       "      <td>B0FFJMW1BP</td>\n",
       "      <td>202</td>\n",
       "      <td>SEA西雅图海鲜自助餐厅</td>\n",
       "      <td>基围虾,鲍鱼,牛排,三文鱼,螃蟹,刺身,鲜榨果汁,雪蟹腿,儿童晚餐,海参,八爪鱼,榴莲披萨,...</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>光华街与正义西街交叉口正义坊购物中心南馆2层2-10</td>\n",
       "      <td>102.709570,25.038954</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.5</td>\n",
       "      <td>146.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFFRZUJP</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>佳客来牛排自助(青年路店)</td>\n",
       "      <td>黑椒牛排,冰激灵,春卷,哈蜜瓜,西冷经典牛排,火龙果,菲力牛排,银耳汤,提子,时蔬炒饭,西米...</td>\n",
       "      <td>餐饮服务;外国餐厅;牛扒店(扒房)</td>\n",
       "      <td>050211</td>\n",
       "      <td>diner</td>\n",
       "      <td>青年路428号绿岛商城3层</td>\n",
       "      <td>102.715864,25.038991</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.0</td>\n",
       "      <td>48.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B0FFH94KWX</td>\n",
       "      <td>B03670W3FY</td>\n",
       "      <td>202</td>\n",
       "      <td>金瓦台韩国自助烤肉(恒隆百货店)</td>\n",
       "      <td>[]</td>\n",
       "      <td>餐饮服务;外国餐厅;韩国料理</td>\n",
       "      <td>050203</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路20-36号景星恒隆百货第五楼</td>\n",
       "      <td>102.709762,25.037676</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>72.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFJ1F8RH</td>\n",
       "      <td>B0FFJMW1BP</td>\n",
       "      <td>202</td>\n",
       "      <td>麦瑞缇海鲜牛排自助(正义店)</td>\n",
       "      <td>黑椒牛排,爆炒花甲,酥皮蛋挞,蛋糕布丁,海鲜,基围虾,火锅,寿司,牛排羊排,烤扇贝,酸奶,凉...</td>\n",
       "      <td>餐饮服务;外国餐厅;外国餐厅</td>\n",
       "      <td>050200</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路正义坊南馆二楼</td>\n",
       "      <td>102.709712,25.039598</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>70.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFJDJCCG</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>布尔牛排自助餐厅(正义坊店)</td>\n",
       "      <td>牛排,北京烤鸭,经典黑椒,甜点,特色烧烤,海鲜火锅,扇贝,生鱼片,鸡尾酒,原切羊排,红酒菲力...</td>\n",
       "      <td>餐饮服务;外国餐厅;外国餐厅</td>\n",
       "      <td>050200</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义坊西侧昆明老街正义坊A1幢4层15、16、17、18、19号5层10号、11号</td>\n",
       "      <td>102.709469,25.040041</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>79.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFG19M64</td>\n",
       "      <td>B03670865G</td>\n",
       "      <td>202</td>\n",
       "      <td>理想自助小火锅(正义坊店)</td>\n",
       "      <td>菠萝油,干炒牛河,虾饺,罗汉斋肠,红焖孖筋面,状元及第粥,牛肉肠粉,皮蛋廋肉粥,四宝饭,黄油...</td>\n",
       "      <td>餐饮服务;中餐厅;火锅店</td>\n",
       "      <td>050117</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路100号正义坊购物中心北馆3楼</td>\n",
       "      <td>102.709668,25.040707</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>57.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFK52PWW</td>\n",
       "      <td>B03670865G</td>\n",
       "      <td>202</td>\n",
       "      <td>李朝园韩式料理自助(正义坊店)</td>\n",
       "      <td>特色烤五花肉,招牌烤肉串,烤肉串,韩式炒年糕,冷面,烤牛肉,招牌五花肉,松板肉,肥牛,牛排,...</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>护国街道办事处正义路西侧昆明老街正义坊A1幢4层7号,5层6号、5层7号</td>\n",
       "      <td>102.709419,25.040264</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>71.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFHHVJGI</td>\n",
       "      <td>B036706ZYB</td>\n",
       "      <td>201</td>\n",
       "      <td>大赤门(柏联广场)</td>\n",
       "      <td>哈根达斯,烤扇贝生蚝,牛扒,炭烤生蚝,帝王蟹脚,冰淇淋,北极贝三文鱼,生鱼片,烧烤l,焗龙虾...</td>\n",
       "      <td>餐饮服务;中餐厅;特色/地方风味餐厅</td>\n",
       "      <td>050118</td>\n",
       "      <td>diner</td>\n",
       "      <td>三市街6号柏联广场F6层</td>\n",
       "      <td>102.710424,25.035545</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>B036706ZYB</td>\n",
       "      <td>6</td>\n",
       "      <td>F6</td>\n",
       "      <td>GD0011040210600084</td>\n",
       "      <td>3.5</td>\n",
       "      <td>188.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFHQ757S</td>\n",
       "      <td>B03670865G</td>\n",
       "      <td>202</td>\n",
       "      <td>火遇自助重庆火锅(正义坊店)</td>\n",
       "      <td>黄辣丁,油碟,老板娘私人订制虾,清淡型的加多宝</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>正义路100号正义坊购物中心北馆2层</td>\n",
       "      <td>102.709687,25.040354</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.0</td>\n",
       "      <td>62.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFGZUHDQ</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>丰悦海鲜自助(昆明总店)(暂停营业)</td>\n",
       "      <td>炸泥鳅,凉拌花螺,丸子,小黄鱼,油炸小酥鱼,八爪鱼,凉拌海蜇皮,刀鱼,哈密瓜,大虾,寿司,小...</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>小花园青年路与人民中路交叉处苏宁易购五楼</td>\n",
       "      <td>102.715376,25.042969</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>3.5</td>\n",
       "      <td>56.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFH0I38Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>重庆土贼自助老火锅(顺城店)</td>\n",
       "      <td>火锅,毛肚,土贼嫩牛肉,美国肥牛,鸭肠,千层肚,鸳鸯锅,麻辣牛肉,饮料酒水,鲜虾,水果,酸奶...</td>\n",
       "      <td>餐饮服务;中餐厅;火锅店</td>\n",
       "      <td>050117</td>\n",
       "      <td>diner</td>\n",
       "      <td>大观街道东风西路19号五华大厦1层</td>\n",
       "      <td>102.706174,25.036590</td>\n",
       "      <td>...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[{'title': [], 'url': 'http://store.is.autonav...</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>4.0</td>\n",
       "      <td>69.00</td>\n",
       "      <td>0</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "<p>20 rows × 47 columns</p>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype                name  \\\n",
       "0   B03670WBHP  B036709KCW       312           金鹰广场酒店自助餐   \n",
       "1   B0FFFRZUSK  B0FFJMW1BP       202       佳客来牛排自助(正义坊店)   \n",
       "2   B0FFFA6W2D  B0367057PF       201     莱茵家乐自助餐厅(新西南广场)   \n",
       "3   B0FFHEPO0C  B03670865G       202        高品会牛排(正义坊总店)   \n",
       "4   B03670X4IE  B03670865G       202      台北帮厨牛排沙拉吧(正义路)   \n",
       "5   B0FFHWDNT6  B0FFM6CG6V       202         昆明捞一品重庆自助火锅   \n",
       "6   B0FFH7JG4M  B0FFM6CG6V       202       味尊老北京涮羊肉自助火锅店   \n",
       "7   B0FFGSFD4O  B03670W3SP       202       鑫胖胖中餐厅(昆明走廊店)   \n",
       "8   B0FFGG40HT          []        []             麦瑞缇牛排自助   \n",
       "9   B0FFJOG2LE  B0FFJMW1BP       202        SEA西雅图海鲜自助餐厅   \n",
       "10  B0FFFRZUJP          []        []       佳客来牛排自助(青年路店)   \n",
       "11  B0FFH94KWX  B03670W3FY       202    金瓦台韩国自助烤肉(恒隆百货店)   \n",
       "12  B0FFJ1F8RH  B0FFJMW1BP       202      麦瑞缇海鲜牛排自助(正义店)   \n",
       "13  B0FFJDJCCG          []        []      布尔牛排自助餐厅(正义坊店)   \n",
       "14  B0FFG19M64  B03670865G       202       理想自助小火锅(正义坊店)   \n",
       "15  B0FFK52PWW  B03670865G       202     李朝园韩式料理自助(正义坊店)   \n",
       "16  B0FFHHVJGI  B036706ZYB       201           大赤门(柏联广场)   \n",
       "17  B0FFHQ757S  B03670865G       202      火遇自助重庆火锅(正义坊店)   \n",
       "18  B0FFGZUHDQ          []        []  丰悦海鲜自助(昆明总店)(暂停营业)   \n",
       "19  B0FFH0I38Z          []        []      重庆土贼自助老火锅(顺城店)   \n",
       "\n",
       "                                                  tag                type  \\\n",
       "0   三文鱼,肥牛卷,仔羊腿,南美甜虾,生蚝,芝士焗青龙虾,小火锅,火腿豆焖饭,米线,人浓汤泉水生...       餐饮服务;中餐厅;海鲜酒楼   \n",
       "1   火锅,西冷牛排冰淇淋,黑椒牛扒,西瓜,果盘,麻辣烫涮菜,可乐鸡尾酒,巧克力小蛋糕,洋芋,鸡排...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "2   自助牛扒,提拉米苏,巧克力喷泉,水果披萨,酸奶,糖醋里脊,烤鸡翅根,抹茶蛋糕,巧克力雪糕,五...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "3   澳洲菲力牛排,水果,薯条,风味牛排,炸鸡,鸡腿,寿司,布丁,沙拉,冰淇淋,自助餐,糕点,奶茶...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "4   黑椒牛排,奶冻,纽约客牛排,小蛋糕,鸡排,自助沙拉,鱼排,澳洲雪花牛排,冰淇淋,蔬菜沙拉,酸...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "5   牛肉,毛肚,鸳鸯锅底,鸭肠,自助甜品小食,自助调料,牛蛙,黄辣丁,子母锅,肥羊,汤锅,鸭舌,...        餐饮服务;中餐厅;火锅店   \n",
       "6                                                  []    餐饮服务;餐饮相关场所;餐饮相关   \n",
       "7   烤五花肉,牛肉卷,大虾,鸡皮,蔬菜,鸡翅中,水果拼盘,小火锅,烧烤,豆腐,烤培根,清汤锅底,...        餐饮服务;中餐厅;中餐厅   \n",
       "8   牛排,贝壳花甲,小糕点,蓝莓慕斯蛋糕,巧克力小蛋糕,水果沙拉,蔬菜沙拉,提拉米苏蛋糕,鸡肉,...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "9   基围虾,鲍鱼,牛排,三文鱼,螃蟹,刺身,鲜榨果汁,雪蟹腿,儿童晚餐,海参,八爪鱼,榴莲披萨,...        餐饮服务;中餐厅;中餐厅   \n",
       "10  黑椒牛排,冰激灵,春卷,哈蜜瓜,西冷经典牛排,火龙果,菲力牛排,银耳汤,提子,时蔬炒饭,西米...   餐饮服务;外国餐厅;牛扒店(扒房)   \n",
       "11                                                 []      餐饮服务;外国餐厅;韩国料理   \n",
       "12  黑椒牛排,爆炒花甲,酥皮蛋挞,蛋糕布丁,海鲜,基围虾,火锅,寿司,牛排羊排,烤扇贝,酸奶,凉...      餐饮服务;外国餐厅;外国餐厅   \n",
       "13  牛排,北京烤鸭,经典黑椒,甜点,特色烧烤,海鲜火锅,扇贝,生鱼片,鸡尾酒,原切羊排,红酒菲力...      餐饮服务;外国餐厅;外国餐厅   \n",
       "14  菠萝油,干炒牛河,虾饺,罗汉斋肠,红焖孖筋面,状元及第粥,牛肉肠粉,皮蛋廋肉粥,四宝饭,黄油...        餐饮服务;中餐厅;火锅店   \n",
       "15  特色烤五花肉,招牌烤肉串,烤肉串,韩式炒年糕,冷面,烤牛肉,招牌五花肉,松板肉,肥牛,牛排,...    餐饮服务;餐饮相关场所;餐饮相关   \n",
       "16  哈根达斯,烤扇贝生蚝,牛扒,炭烤生蚝,帝王蟹脚,冰淇淋,北极贝三文鱼,生鱼片,烧烤l,焗龙虾...  餐饮服务;中餐厅;特色/地方风味餐厅   \n",
       "17                            黄辣丁,油碟,老板娘私人订制虾,清淡型的加多宝        餐饮服务;中餐厅;中餐厅   \n",
       "18  炸泥鳅,凉拌花螺,丸子,小黄鱼,油炸小酥鱼,八爪鱼,凉拌海蜇皮,刀鱼,哈密瓜,大虾,寿司,小...        餐饮服务;中餐厅;中餐厅   \n",
       "19  火锅,毛肚,土贼嫩牛肉,美国肥牛,鸭肠,千层肚,鸳鸯锅,麻辣牛肉,饮料酒水,鲜虾,水果,酸奶...        餐饮服务;中餐厅;火锅店   \n",
       "\n",
       "   typecode biz_type                                    address  \\\n",
       "0    050119    diner                            威远街168号金鹰广场酒店9层   \n",
       "1    050211    diner                                 正义路正义坊南馆3层   \n",
       "2    050211    diner                            人民中路17号新西南广场F6层   \n",
       "3    050211    diner                             光华街正义坊购物中心北馆2层   \n",
       "4    050211    diner                         正义路100号正义坊购物中心北馆3层   \n",
       "5    050117    diner    人民中路17号昆明走廊一期商场第五层4K2-1-2、4K3-1-2号33号档口   \n",
       "6    050000    diner               护国街道办事处人民中路17号昆明走廊一期2层C1-C2号   \n",
       "7    050100    diner                       人民中路昆明走廊3楼左走廊二楼,电梯3楼   \n",
       "8    050211    diner                                   祥云街53号2楼   \n",
       "9    050100    diner                 光华街与正义西街交叉口正义坊购物中心南馆2层2-10   \n",
       "10   050211    diner                              青年路428号绿岛商城3层   \n",
       "11   050203    diner                         正义路20-36号景星恒隆百货第五楼   \n",
       "12   050200    diner                                 正义路正义坊南馆二楼   \n",
       "13   050200    diner  正义坊西侧昆明老街正义坊A1幢4层15、16、17、18、19号5层10号、11号   \n",
       "14   050117    diner                         正义路100号正义坊购物中心北馆3楼   \n",
       "15   050000    diner       护国街道办事处正义路西侧昆明老街正义坊A1幢4层7号,5层6号、5层7号   \n",
       "16   050118    diner                               三市街6号柏联广场F6层   \n",
       "17   050100    diner                         正义路100号正义坊购物中心北馆2层   \n",
       "18   050100    diner                       小花园青年路与人民中路交叉处苏宁易购五楼   \n",
       "19   050117    diner                          大观街道东风西路19号五华大厦1层   \n",
       "\n",
       "                location  ... event children  \\\n",
       "0   102.713681,25.040455  ...    []       []   \n",
       "1   102.709675,25.039541  ...    []       []   \n",
       "2   102.715483,25.041901  ...    []       []   \n",
       "3   102.709717,25.040644  ...    []       []   \n",
       "4   102.709667,25.040707  ...    []       []   \n",
       "5   102.713254,25.041058  ...    []       []   \n",
       "6   102.713512,25.041043  ...    []       []   \n",
       "7   102.713944,25.041028  ...    []       []   \n",
       "8   102.712548,25.036671  ...    []       []   \n",
       "9   102.709570,25.038954  ...    []       []   \n",
       "10  102.715864,25.038991  ...    []       []   \n",
       "11  102.709762,25.037676  ...    []       []   \n",
       "12  102.709712,25.039598  ...    []       []   \n",
       "13  102.709469,25.040041  ...    []       []   \n",
       "14  102.709668,25.040707  ...    []       []   \n",
       "15  102.709419,25.040264  ...    []       []   \n",
       "16  102.710424,25.035545  ...    []       []   \n",
       "17  102.709687,25.040354  ...    []       []   \n",
       "18  102.715376,25.042969  ...    []       []   \n",
       "19  102.706174,25.036590  ...    []       []   \n",
       "\n",
       "                                               photos indoor_data.cpid  \\\n",
       "0   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "1   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "2   [{'title': [], 'url': 'http://store.is.autonav...       B0367057PF   \n",
       "3   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "4   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "5   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "6   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "7   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "8   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "9   [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "10  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "11  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "12  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "13  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "14  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "15  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "16  [{'title': [], 'url': 'http://store.is.autonav...       B036706ZYB   \n",
       "17  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "18  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "19  [{'title': [], 'url': 'http://store.is.autonav...               []   \n",
       "\n",
       "   indoor_data.floor indoor_data.truefloor           indoor_data.cmsid  \\\n",
       "0                 []                    []                          []   \n",
       "1                 []                    []                          []   \n",
       "2                  6                    F6  126580210600471_B0FFFA6W2D   \n",
       "3                 []                    []                          []   \n",
       "4                 []                    []                          []   \n",
       "5                 []                    []                          []   \n",
       "6                 []                    []                          []   \n",
       "7                 []                    []                          []   \n",
       "8                 []                    []                          []   \n",
       "9                 []                    []                          []   \n",
       "10                []                    []                          []   \n",
       "11                []                    []                          []   \n",
       "12                []                    []                          []   \n",
       "13                []                    []                          []   \n",
       "14                []                    []                          []   \n",
       "15                []                    []                          []   \n",
       "16                 6                    F6          GD0011040210600084   \n",
       "17                []                    []                          []   \n",
       "18                []                    []                          []   \n",
       "19                []                    []                          []   \n",
       "\n",
       "   biz_ext.rating biz_ext.cost biz_ext.meal_ordering  \n",
       "0             3.5       149.00                     0  \n",
       "1             3.5        64.00                     0  \n",
       "2             4.0        58.00                     0  \n",
       "3             3.5        59.00                     0  \n",
       "4             3.5        62.00                     0  \n",
       "5             3.5        64.00                     0  \n",
       "6             5.0        39.00                     0  \n",
       "7             3.5        58.00                     0  \n",
       "8             3.5        54.00                     0  \n",
       "9             4.5       146.00                     0  \n",
       "10            4.0        48.00                     0  \n",
       "11            3.0        72.00                     0  \n",
       "12            3.5        70.00                     0  \n",
       "13            3.5        79.00                     0  \n",
       "14            3.5        57.00                     0  \n",
       "15            3.5        71.00                     0  \n",
       "16            3.5       188.00                     0  \n",
       "17            3.0        62.00                     0  \n",
       "18            3.5        56.00                     0  \n",
       "19            4.0        69.00                     0  \n",
       "\n",
       "[20 rows x 47 columns]"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    },
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "Empty DataFrame\n",
       "Columns: []\n",
       "Index: []"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "df_自助餐 = pd.json_normalize(自助餐[\"pois\"])\n",
    "df_自助餐_自助餐 = pd.json_normalize(自助餐[\"pois\"][7][\"children\"])\n",
    "display(df_自助餐,df_自助餐_自助餐)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 161,
   "metadata": {},
   "outputs": [],
   "source": [
    "def place_around(location,keywords=None,types=None,city=None,redius=None,sortrule=None,offset=None,page=None,extensions='base',sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/place/around?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'location':location,\n",
    "        'types':types,\n",
    "        'city':city,\n",
    "        'redius':redius,\n",
    "        'sortrule':sortrule,\n",
    "        'offset':offset,\n",
    "        'page':page,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 162,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '861',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'suggestion': {'keywords': [], 'cities': []},\n",
       " 'pois': [{'id': 'B0FFK6IXN3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '串裹春秋烧烤吧',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '环城巷北50米',\n",
       "   'location': '102.732244,25.024277',\n",
       "   'tel': [],\n",
       "   'distance': '10',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLBSIUU',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '北方手工水饺',\n",
       "   'type': '餐饮服务;中餐厅;中餐厅',\n",
       "   'typecode': '050100',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '吴井街道办事处环城巷美树星城A一F号商铺',\n",
       "   'location': '102.732244,25.024406',\n",
       "   'tel': [],\n",
       "   'distance': '12',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHMQC31',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '足艺堂',\n",
       "   'type': '生活服务;洗浴推拿场所;洗浴推拿场所',\n",
       "   'typecode': '071400',\n",
       "   'biz_type': [],\n",
       "   'address': '环城南巷美树新城A座',\n",
       "   'location': '102.732156,25.024453',\n",
       "   'tel': [],\n",
       "   'distance': '13',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03670W26F',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '腾冲特色饵丝(美树星城店)',\n",
       "   'type': '餐饮服务;快餐厅;快餐厅',\n",
       "   'typecode': '050300',\n",
       "   'biz_type': 'diner',\n",
       "   'address': [],\n",
       "   'location': '102.732194,25.024136',\n",
       "   'tel': '0871-66011756;13577018743',\n",
       "   'distance': '22',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFG1NQPL',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '环城巷民贸公司宿舍',\n",
       "   'type': '商务住宅;住宅区;宿舍',\n",
       "   'typecode': '120303',\n",
       "   'biz_type': [],\n",
       "   'address': '环城巷6号',\n",
       "   'location': '102.732403,25.024507',\n",
       "   'tel': [],\n",
       "   'distance': '31',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFF2HHVZ',\n",
       "   'parent': 'B0FFGYGEGQ',\n",
       "   'childtype': '308',\n",
       "   'name': '美树星城A座',\n",
       "   'type': '商务住宅;住宅区;住宅小区',\n",
       "   'typecode': '120302',\n",
       "   'biz_type': [],\n",
       "   'address': '环城南路环城巷6号',\n",
       "   'location': '102.731811,25.024164',\n",
       "   'tel': [],\n",
       "   'distance': '39',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFHI12LE',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '新亚企航(吴井新村西北)',\n",
       "   'type': '生活服务;中介机构;中介机构',\n",
       "   'typecode': '071600',\n",
       "   'biz_type': [],\n",
       "   'address': '老民航路26号',\n",
       "   'location': '102.732415,25.024029',\n",
       "   'tel': [],\n",
       "   'distance': '42',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03670W2VH',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国体育彩票',\n",
       "   'type': '生活服务;彩票彩券销售点;彩票彩券销售点',\n",
       "   'typecode': '071800',\n",
       "   'biz_type': [],\n",
       "   'address': '环城巷4号11幢附近',\n",
       "   'location': '102.732595,25.024257',\n",
       "   'tel': '0871-63577381',\n",
       "   'distance': '45',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03670W1IS',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '中国福利彩票',\n",
       "   'type': '生活服务;彩票彩券销售点;彩票彩券销售点',\n",
       "   'typecode': '071800',\n",
       "   'biz_type': [],\n",
       "   'address': '环城巷4号-11幢附近',\n",
       "   'location': '102.732616,25.024242',\n",
       "   'tel': '13619659863',\n",
       "   'distance': '47',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL6WWAV',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '菜鸟驿站(昆明美树星辰B座2号店)',\n",
       "   'type': '生活服务;物流速递;物流速递',\n",
       "   'typecode': '070500',\n",
       "   'biz_type': [],\n",
       "   'address': '吴井街道美树星城B座2-2号商铺',\n",
       "   'location': '102.732614,25.024233',\n",
       "   'tel': '4001787878',\n",
       "   'distance': '47',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLGK7QH',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '大理土鸡米线',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': [],\n",
       "   'location': '102.732631,25.024195',\n",
       "   'tel': [],\n",
       "   'distance': '50',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B03670W2FK',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '洁美干洗(吴井路店)',\n",
       "   'type': '生活服务;洗衣店;洗衣店',\n",
       "   'typecode': '071500',\n",
       "   'biz_type': [],\n",
       "   'address': '吴井路天城园林居53号商铺',\n",
       "   'location': '102.732218,25.023874',\n",
       "   'tel': '13808756523',\n",
       "   'distance': '51',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFKPDI58',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '曾成小吃店',\n",
       "   'type': '餐饮服务;餐饮相关场所;餐饮相关',\n",
       "   'typecode': '050000',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '吴井街道办事处环城巷4号',\n",
       "   'location': '102.732650,25.024200',\n",
       "   'tel': '13529087733',\n",
       "   'distance': '51',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFLEJZMB',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '理想造型(四分店)',\n",
       "   'type': '生活服务;美容美发店;美容美发店',\n",
       "   'typecode': '071100',\n",
       "   'biz_type': [],\n",
       "   'address': '吴井街道办事处吴井路街道天城园林',\n",
       "   'location': '102.732201,25.023862',\n",
       "   'tel': [],\n",
       "   'distance': '52',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGSEWN0',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '正宗富源酸菜土猪脚火锅(隆盛客十一分店)',\n",
       "   'type': '餐饮服务;中餐厅;火锅店',\n",
       "   'typecode': '050117',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '民航路143号',\n",
       "   'location': '102.732687,25.024105',\n",
       "   'tel': '15087154100',\n",
       "   'distance': '59',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFIVLTUI',\n",
       "   'parent': 'B0FFF7E6IG',\n",
       "   'childtype': '202',\n",
       "   'name': '中国电信好宽带服务中心',\n",
       "   'type': '生活服务;电讯营业厅;中国电信营业厅',\n",
       "   'typecode': '070601',\n",
       "   'biz_type': [],\n",
       "   'address': '环城巷绿洲花园16栋16-4号',\n",
       "   'location': '102.731779,25.024758',\n",
       "   'tel': '18183811169',\n",
       "   'distance': '60',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFL1JRR3',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '关凤盲人按摩',\n",
       "   'type': '生活服务;洗浴推拿场所;洗浴推拿场所',\n",
       "   'typecode': '071400',\n",
       "   'biz_type': [],\n",
       "   'address': '天城园林居50号',\n",
       "   'location': '102.732086,25.023780',\n",
       "   'tel': '13629481105',\n",
       "   'distance': '61',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '1',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFGPIL2J',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '诺华地产',\n",
       "   'type': '生活服务;中介机构;中介机构',\n",
       "   'typecode': '071600',\n",
       "   'biz_type': [],\n",
       "   'address': '吴井街道环城巷美树星城B座E号商铺',\n",
       "   'location': '102.732706,25.024086',\n",
       "   'tel': '13888243350;18812269346',\n",
       "   'distance': '61',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFJ44UC7',\n",
       "   'parent': 'B0FFF7E6IG',\n",
       "   'childtype': '202',\n",
       "   'name': '郑远元专业修脚房(环城巷店)',\n",
       "   'type': '生活服务;生活服务场所;生活服务场所',\n",
       "   'typecode': '070000',\n",
       "   'biz_type': [],\n",
       "   'address': '吴井路237号绿洲花园16-4',\n",
       "   'location': '102.731745,25.024809',\n",
       "   'tel': '13772966031',\n",
       "   'distance': '67',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []},\n",
       "  {'id': 'B0FFM1V37Z',\n",
       "   'parent': [],\n",
       "   'childtype': [],\n",
       "   'name': '汇享生活(环城巷店)',\n",
       "   'type': '餐饮服务;糕饼店;糕饼店',\n",
       "   'typecode': '050800',\n",
       "   'biz_type': 'diner',\n",
       "   'address': '吴井路266号天城园林居商铺67号',\n",
       "   'location': '102.732632,25.023893',\n",
       "   'tel': '18887181119',\n",
       "   'distance': '68',\n",
       "   'biz_ext': [],\n",
       "   'importance': [],\n",
       "   'shopid': [],\n",
       "   'shopinfo': '0',\n",
       "   'poiweight': [],\n",
       "   'photos': []}]}"
      ]
     },
     "execution_count": 162,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "\n",
    "df_美树星城 = place_around( 美树星城_location)\n",
    "df_美树星城\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 163,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/html": [
       "<div>\n",
       "<style scoped>\n",
       "    .dataframe tbody tr th:only-of-type {\n",
       "        vertical-align: middle;\n",
       "    }\n",
       "\n",
       "    .dataframe tbody tr th {\n",
       "        vertical-align: top;\n",
       "    }\n",
       "\n",
       "    .dataframe thead th {\n",
       "        text-align: right;\n",
       "    }\n",
       "</style>\n",
       "<table border=\"1\" class=\"dataframe\">\n",
       "  <thead>\n",
       "    <tr style=\"text-align: right;\">\n",
       "      <th></th>\n",
       "      <th>id</th>\n",
       "      <th>parent</th>\n",
       "      <th>childtype</th>\n",
       "      <th>name</th>\n",
       "      <th>type</th>\n",
       "      <th>typecode</th>\n",
       "      <th>biz_type</th>\n",
       "      <th>address</th>\n",
       "      <th>location</th>\n",
       "      <th>tel</th>\n",
       "      <th>distance</th>\n",
       "      <th>biz_ext</th>\n",
       "      <th>importance</th>\n",
       "      <th>shopid</th>\n",
       "      <th>shopinfo</th>\n",
       "      <th>poiweight</th>\n",
       "      <th>photos</th>\n",
       "    </tr>\n",
       "  </thead>\n",
       "  <tbody>\n",
       "    <tr>\n",
       "      <th>0</th>\n",
       "      <td>B0FFK6IXN3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>串裹春秋烧烤吧</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>环城巷北50米</td>\n",
       "      <td>102.732244,25.024277</td>\n",
       "      <td>[]</td>\n",
       "      <td>10</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>1</th>\n",
       "      <td>B0FFLBSIUU</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>北方手工水饺</td>\n",
       "      <td>餐饮服务;中餐厅;中餐厅</td>\n",
       "      <td>050100</td>\n",
       "      <td>diner</td>\n",
       "      <td>吴井街道办事处环城巷美树星城A一F号商铺</td>\n",
       "      <td>102.732244,25.024406</td>\n",
       "      <td>[]</td>\n",
       "      <td>12</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>2</th>\n",
       "      <td>B0FFHMQC31</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>足艺堂</td>\n",
       "      <td>生活服务;洗浴推拿场所;洗浴推拿场所</td>\n",
       "      <td>071400</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城南巷美树新城A座</td>\n",
       "      <td>102.732156,25.024453</td>\n",
       "      <td>[]</td>\n",
       "      <td>13</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>3</th>\n",
       "      <td>B03670W26F</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>腾冲特色饵丝(美树星城店)</td>\n",
       "      <td>餐饮服务;快餐厅;快餐厅</td>\n",
       "      <td>050300</td>\n",
       "      <td>diner</td>\n",
       "      <td>[]</td>\n",
       "      <td>102.732194,25.024136</td>\n",
       "      <td>0871-66011756;13577018743</td>\n",
       "      <td>22</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>4</th>\n",
       "      <td>B0FFG1NQPL</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城巷民贸公司宿舍</td>\n",
       "      <td>商务住宅;住宅区;宿舍</td>\n",
       "      <td>120303</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城巷6号</td>\n",
       "      <td>102.732403,25.024507</td>\n",
       "      <td>[]</td>\n",
       "      <td>31</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>5</th>\n",
       "      <td>B0FFF2HHVZ</td>\n",
       "      <td>B0FFGYGEGQ</td>\n",
       "      <td>308</td>\n",
       "      <td>美树星城A座</td>\n",
       "      <td>商务住宅;住宅区;住宅小区</td>\n",
       "      <td>120302</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城南路环城巷6号</td>\n",
       "      <td>102.731811,25.024164</td>\n",
       "      <td>[]</td>\n",
       "      <td>39</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>6</th>\n",
       "      <td>B0FFHI12LE</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>新亚企航(吴井新村西北)</td>\n",
       "      <td>生活服务;中介机构;中介机构</td>\n",
       "      <td>071600</td>\n",
       "      <td>[]</td>\n",
       "      <td>老民航路26号</td>\n",
       "      <td>102.732415,25.024029</td>\n",
       "      <td>[]</td>\n",
       "      <td>42</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>7</th>\n",
       "      <td>B03670W2VH</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国体育彩票</td>\n",
       "      <td>生活服务;彩票彩券销售点;彩票彩券销售点</td>\n",
       "      <td>071800</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城巷4号11幢附近</td>\n",
       "      <td>102.732595,25.024257</td>\n",
       "      <td>0871-63577381</td>\n",
       "      <td>45</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>8</th>\n",
       "      <td>B03670W1IS</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>中国福利彩票</td>\n",
       "      <td>生活服务;彩票彩券销售点;彩票彩券销售点</td>\n",
       "      <td>071800</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城巷4号-11幢附近</td>\n",
       "      <td>102.732616,25.024242</td>\n",
       "      <td>13619659863</td>\n",
       "      <td>47</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>9</th>\n",
       "      <td>B0FFL6WWAV</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>菜鸟驿站(昆明美树星辰B座2号店)</td>\n",
       "      <td>生活服务;物流速递;物流速递</td>\n",
       "      <td>070500</td>\n",
       "      <td>[]</td>\n",
       "      <td>吴井街道美树星城B座2-2号商铺</td>\n",
       "      <td>102.732614,25.024233</td>\n",
       "      <td>4001787878</td>\n",
       "      <td>47</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>10</th>\n",
       "      <td>B0FFLGK7QH</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>大理土鸡米线</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>[]</td>\n",
       "      <td>102.732631,25.024195</td>\n",
       "      <td>[]</td>\n",
       "      <td>50</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>11</th>\n",
       "      <td>B03670W2FK</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>洁美干洗(吴井路店)</td>\n",
       "      <td>生活服务;洗衣店;洗衣店</td>\n",
       "      <td>071500</td>\n",
       "      <td>[]</td>\n",
       "      <td>吴井路天城园林居53号商铺</td>\n",
       "      <td>102.732218,25.023874</td>\n",
       "      <td>13808756523</td>\n",
       "      <td>51</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>12</th>\n",
       "      <td>B0FFKPDI58</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>曾成小吃店</td>\n",
       "      <td>餐饮服务;餐饮相关场所;餐饮相关</td>\n",
       "      <td>050000</td>\n",
       "      <td>diner</td>\n",
       "      <td>吴井街道办事处环城巷4号</td>\n",
       "      <td>102.732650,25.024200</td>\n",
       "      <td>13529087733</td>\n",
       "      <td>51</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>13</th>\n",
       "      <td>B0FFLEJZMB</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>理想造型(四分店)</td>\n",
       "      <td>生活服务;美容美发店;美容美发店</td>\n",
       "      <td>071100</td>\n",
       "      <td>[]</td>\n",
       "      <td>吴井街道办事处吴井路街道天城园林</td>\n",
       "      <td>102.732201,25.023862</td>\n",
       "      <td>[]</td>\n",
       "      <td>52</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>14</th>\n",
       "      <td>B0FFGSEWN0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>正宗富源酸菜土猪脚火锅(隆盛客十一分店)</td>\n",
       "      <td>餐饮服务;中餐厅;火锅店</td>\n",
       "      <td>050117</td>\n",
       "      <td>diner</td>\n",
       "      <td>民航路143号</td>\n",
       "      <td>102.732687,25.024105</td>\n",
       "      <td>15087154100</td>\n",
       "      <td>59</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>15</th>\n",
       "      <td>B0FFIVLTUI</td>\n",
       "      <td>B0FFF7E6IG</td>\n",
       "      <td>202</td>\n",
       "      <td>中国电信好宽带服务中心</td>\n",
       "      <td>生活服务;电讯营业厅;中国电信营业厅</td>\n",
       "      <td>070601</td>\n",
       "      <td>[]</td>\n",
       "      <td>环城巷绿洲花园16栋16-4号</td>\n",
       "      <td>102.731779,25.024758</td>\n",
       "      <td>18183811169</td>\n",
       "      <td>60</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>16</th>\n",
       "      <td>B0FFL1JRR3</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>关凤盲人按摩</td>\n",
       "      <td>生活服务;洗浴推拿场所;洗浴推拿场所</td>\n",
       "      <td>071400</td>\n",
       "      <td>[]</td>\n",
       "      <td>天城园林居50号</td>\n",
       "      <td>102.732086,25.023780</td>\n",
       "      <td>13629481105</td>\n",
       "      <td>61</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>1</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>17</th>\n",
       "      <td>B0FFGPIL2J</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>诺华地产</td>\n",
       "      <td>生活服务;中介机构;中介机构</td>\n",
       "      <td>071600</td>\n",
       "      <td>[]</td>\n",
       "      <td>吴井街道环城巷美树星城B座E号商铺</td>\n",
       "      <td>102.732706,25.024086</td>\n",
       "      <td>13888243350;18812269346</td>\n",
       "      <td>61</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>18</th>\n",
       "      <td>B0FFJ44UC7</td>\n",
       "      <td>B0FFF7E6IG</td>\n",
       "      <td>202</td>\n",
       "      <td>郑远元专业修脚房(环城巷店)</td>\n",
       "      <td>生活服务;生活服务场所;生活服务场所</td>\n",
       "      <td>070000</td>\n",
       "      <td>[]</td>\n",
       "      <td>吴井路237号绿洲花园16-4</td>\n",
       "      <td>102.731745,25.024809</td>\n",
       "      <td>13772966031</td>\n",
       "      <td>67</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "    <tr>\n",
       "      <th>19</th>\n",
       "      <td>B0FFM1V37Z</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>汇享生活(环城巷店)</td>\n",
       "      <td>餐饮服务;糕饼店;糕饼店</td>\n",
       "      <td>050800</td>\n",
       "      <td>diner</td>\n",
       "      <td>吴井路266号天城园林居商铺67号</td>\n",
       "      <td>102.732632,25.023893</td>\n",
       "      <td>18887181119</td>\n",
       "      <td>68</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "      <td>0</td>\n",
       "      <td>[]</td>\n",
       "      <td>[]</td>\n",
       "    </tr>\n",
       "  </tbody>\n",
       "</table>\n",
       "</div>"
      ],
      "text/plain": [
       "            id      parent childtype                  name  \\\n",
       "0   B0FFK6IXN3          []        []               串裹春秋烧烤吧   \n",
       "1   B0FFLBSIUU          []        []                北方手工水饺   \n",
       "2   B0FFHMQC31          []        []                   足艺堂   \n",
       "3   B03670W26F          []        []         腾冲特色饵丝(美树星城店)   \n",
       "4   B0FFG1NQPL          []        []             环城巷民贸公司宿舍   \n",
       "5   B0FFF2HHVZ  B0FFGYGEGQ       308                美树星城A座   \n",
       "6   B0FFHI12LE          []        []          新亚企航(吴井新村西北)   \n",
       "7   B03670W2VH          []        []                中国体育彩票   \n",
       "8   B03670W1IS          []        []                中国福利彩票   \n",
       "9   B0FFL6WWAV          []        []     菜鸟驿站(昆明美树星辰B座2号店)   \n",
       "10  B0FFLGK7QH          []        []                大理土鸡米线   \n",
       "11  B03670W2FK          []        []            洁美干洗(吴井路店)   \n",
       "12  B0FFKPDI58          []        []                 曾成小吃店   \n",
       "13  B0FFLEJZMB          []        []             理想造型(四分店)   \n",
       "14  B0FFGSEWN0          []        []  正宗富源酸菜土猪脚火锅(隆盛客十一分店)   \n",
       "15  B0FFIVLTUI  B0FFF7E6IG       202           中国电信好宽带服务中心   \n",
       "16  B0FFL1JRR3          []        []                关凤盲人按摩   \n",
       "17  B0FFGPIL2J          []        []                  诺华地产   \n",
       "18  B0FFJ44UC7  B0FFF7E6IG       202        郑远元专业修脚房(环城巷店)   \n",
       "19  B0FFM1V37Z          []        []            汇享生活(环城巷店)   \n",
       "\n",
       "                    type typecode biz_type               address  \\\n",
       "0       餐饮服务;餐饮相关场所;餐饮相关   050000    diner               环城巷北50米   \n",
       "1           餐饮服务;中餐厅;中餐厅   050100    diner  吴井街道办事处环城巷美树星城A一F号商铺   \n",
       "2     生活服务;洗浴推拿场所;洗浴推拿场所   071400       []            环城南巷美树新城A座   \n",
       "3           餐饮服务;快餐厅;快餐厅   050300    diner                    []   \n",
       "4            商务住宅;住宅区;宿舍   120303       []                 环城巷6号   \n",
       "5          商务住宅;住宅区;住宅小区   120302       []             环城南路环城巷6号   \n",
       "6         生活服务;中介机构;中介机构   071600       []               老民航路26号   \n",
       "7   生活服务;彩票彩券销售点;彩票彩券销售点   071800       []            环城巷4号11幢附近   \n",
       "8   生活服务;彩票彩券销售点;彩票彩券销售点   071800       []           环城巷4号-11幢附近   \n",
       "9         生活服务;物流速递;物流速递   070500       []      吴井街道美树星城B座2-2号商铺   \n",
       "10      餐饮服务;餐饮相关场所;餐饮相关   050000    diner                    []   \n",
       "11          生活服务;洗衣店;洗衣店   071500       []         吴井路天城园林居53号商铺   \n",
       "12      餐饮服务;餐饮相关场所;餐饮相关   050000    diner          吴井街道办事处环城巷4号   \n",
       "13      生活服务;美容美发店;美容美发店   071100       []      吴井街道办事处吴井路街道天城园林   \n",
       "14          餐饮服务;中餐厅;火锅店   050117    diner               民航路143号   \n",
       "15    生活服务;电讯营业厅;中国电信营业厅   070601       []       环城巷绿洲花园16栋16-4号   \n",
       "16    生活服务;洗浴推拿场所;洗浴推拿场所   071400       []              天城园林居50号   \n",
       "17        生活服务;中介机构;中介机构   071600       []     吴井街道环城巷美树星城B座E号商铺   \n",
       "18    生活服务;生活服务场所;生活服务场所   070000       []       吴井路237号绿洲花园16-4   \n",
       "19          餐饮服务;糕饼店;糕饼店   050800    diner     吴井路266号天城园林居商铺67号   \n",
       "\n",
       "                location                        tel distance biz_ext  \\\n",
       "0   102.732244,25.024277                         []       10      []   \n",
       "1   102.732244,25.024406                         []       12      []   \n",
       "2   102.732156,25.024453                         []       13      []   \n",
       "3   102.732194,25.024136  0871-66011756;13577018743       22      []   \n",
       "4   102.732403,25.024507                         []       31      []   \n",
       "5   102.731811,25.024164                         []       39      []   \n",
       "6   102.732415,25.024029                         []       42      []   \n",
       "7   102.732595,25.024257              0871-63577381       45      []   \n",
       "8   102.732616,25.024242                13619659863       47      []   \n",
       "9   102.732614,25.024233                 4001787878       47      []   \n",
       "10  102.732631,25.024195                         []       50      []   \n",
       "11  102.732218,25.023874                13808756523       51      []   \n",
       "12  102.732650,25.024200                13529087733       51      []   \n",
       "13  102.732201,25.023862                         []       52      []   \n",
       "14  102.732687,25.024105                15087154100       59      []   \n",
       "15  102.731779,25.024758                18183811169       60      []   \n",
       "16  102.732086,25.023780                13629481105       61      []   \n",
       "17  102.732706,25.024086    13888243350;18812269346       61      []   \n",
       "18  102.731745,25.024809                13772966031       67      []   \n",
       "19  102.732632,25.023893                18887181119       68      []   \n",
       "\n",
       "   importance shopid shopinfo poiweight photos  \n",
       "0          []     []        0        []     []  \n",
       "1          []     []        1        []     []  \n",
       "2          []     []        0        []     []  \n",
       "3          []     []        1        []     []  \n",
       "4          []     []        0        []     []  \n",
       "5          []     []        0        []     []  \n",
       "6          []     []        0        []     []  \n",
       "7          []     []        0        []     []  \n",
       "8          []     []        0        []     []  \n",
       "9          []     []        0        []     []  \n",
       "10         []     []        0        []     []  \n",
       "11         []     []        0        []     []  \n",
       "12         []     []        0        []     []  \n",
       "13         []     []        0        []     []  \n",
       "14         []     []        1        []     []  \n",
       "15         []     []        0        []     []  \n",
       "16         []     []        1        []     []  \n",
       "17         []     []        0        []     []  \n",
       "18         []     []        0        []     []  \n",
       "19         []     []        0        []     []  "
      ]
     },
     "execution_count": 163,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "df_美树星城 = pd.json_normalize(df_美树星城['pois'])\n",
    "df_美树星城"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 静态地图"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 164,
   "metadata": {},
   "outputs": [],
   "source": [
    "# 静态地图\n",
    "from PIL import Image\n",
    "from io import BytesIO\n",
    "def staticmap(location,zoom,size=None,scale=1,markers=None,labels=None,paths=None,traffic=0,page=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/staticmap?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'location':location,\n",
    "        'zoom':zoom,\n",
    "        'size':size,\n",
    "        'scale':scale,\n",
    "        'markers':markers,\n",
    "        'labels':labels,\n",
    "        'paths':paths,\n",
    "        'traffic':traffic,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = Image.open(BytesIO(response.content))\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 165,
   "metadata": {},
   "outputs": [],
   "source": [
    "双塔 = geocode('昆明双塔')\n",
    "双塔_location = 双塔['geocodes'][0]['location']\n"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 166,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAMAAAC3Ycb+AAADAFBMVEW5urzf29L7+P7m4dv9/Pv8/frp6OXnwr36+ffm4t3k4Nb5+/f++f4Id+L6+/jhdnb19fWn6YDj39rXg4D4+vvs6ODy8u8AZb75+vbu7ej6+vj49/esu5/s6eBJUTv8/Pr6+vv09fLd2M2+WEr++/FiZGdMgNft6uX29vXi2c/z8e7i3daLkp3o5eHx8O3q6ePy8fDK4qHo5d/18uvd1873+vL29vfj3tbx8ef4+fno5N3m4dj19PL4+Pjp5+Lw8PH49u1ub3Djfn7P56ry8O3w7umEkGrl4drn49zs6OPp6egCjPmpeWuUiXVtsPCnwY1P1HPc4+s1OS36+fnz8/EdHxiipKGrqqr29vOrn5Lp5d729O/29PPk4dqcnZ11dm/jeXlpaGfv7eny8ezu7e2up53N46n5+PZOTU2ajX2WmZL6zEOFh4XX6rby8Ovm5OD3e1/w7ed8fX6jl4nZz7LT6K/Q4a/LzMfKxLzv7erW373x7+vf2tDX2sHY1dD29fHo5Ny2trT08u/N5Kbk4Njo5uDf2tDj39fz7+j08u/p5+Hh3NLQ0M/h3dLExcL49/T7+vnw7+zz8e7r6eXa2dff3drg3NPp59/d2M/7+Pbv8eHhuKTlnJCusLH19PLu7OfwurD8/Pv28+3lhYXq8tnCyqzf2tDs6eNdYli8U0Xe287i7b35+ffo5N+Lj5De8M6+uLDV16r7+vrTzsfw7uqtrKpHR0fb1sri3dSztaP39vTg29Hd2c3a4MPj3tS/vr3q6OL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dT1gyFVgir2gfXkTUT+Jb6/wF3zSpY5dMFdQAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<PIL.PngImagePlugin.PngImageFile image mode=P size=400x400 at 0x2903A50B788>"
      ]
     },
     "execution_count": 166,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "staticmap(location=双塔_location, zoom=16)\n"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# IP定位"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 167,
   "metadata": {},
   "outputs": [],
   "source": [
    "def ip(ip=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/ip?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'ip':ip,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 168,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'province': '云南省',\n",
       " 'city': '丽江市',\n",
       " 'adcode': '530700',\n",
       " 'rectangle': '100.1284182,26.78026913;100.3237903,26.95489592'}"
      ]
     },
     "execution_count": 168,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "云南丽江ip = ip(ip='182.240.229.28')\n",
    "云南丽江ip"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 交通态势"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 169,
   "metadata": {},
   "outputs": [],
   "source": [
    "def transport(rectangle=None,callback=None,level=None,sig=None,extensions=\"base\",)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/traffic/status/rectangle?parameters'\n",
    "    params={\n",
    "        'key': key,\n",
    "        'rectangle':rectangle,\n",
    "        'level':level,\n",
    "        'extensions':extensions,\n",
    "        'sig':sig,\n",
    "        'callback':callback,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 170,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'trafficinfo': {'description': '北三环路：双向畅通。',\n",
       "  'evaluation': {'expedite': '100.00%',\n",
       "   'congested': '0.00%',\n",
       "   'blocked': '0.00%',\n",
       "   'unknown': '0.00%',\n",
       "   'status': '1',\n",
       "   'description': '整体畅通'}}}"
      ]
     },
     "execution_count": 170,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "transport('116.351147,39.966309;116.357134,39.968727',extensions=\"base\")\n",
    "# 这个也是用的高德api平台web参考文档中的ip。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 坐标转换"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 171,
   "metadata": {},
   "outputs": [],
   "source": [
    "def adress(locations,coordsys=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/coordinate/convert?parameters'\n",
    "    params={\n",
    "        'key': key,\n",
    "        'locations':locations,\n",
    "        'coordsys':coordsys,\n",
    "        'sig':sig,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 172,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'info': 'ok',\n",
       " 'infocode': '10000',\n",
       " 'locations': '102.733645833334,25.021393500435'}"
      ]
     },
     "execution_count": 172,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "美树星城 = adress('102.732156,25.024332','gps')\n",
    "美树星城"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 天气查询"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 173,
   "metadata": {},
   "outputs": [],
   "source": [
    "def weather(city,extensions=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/weather/weatherInfo?parameters'\n",
    "    params={\n",
    "        'key':key,\n",
    "        'city':city,\n",
    "        'extensions':extensions,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 174,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '1',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'lives': [{'province': '福建',\n",
       "   'city': '福清市',\n",
       "   'adcode': '350181',\n",
       "   'weather': '阴',\n",
       "   'temperature': '12',\n",
       "   'winddirection': '东北',\n",
       "   'windpower': '4',\n",
       "   'humidity': '82',\n",
       "   'reporttime': '2020-04-23 22:25:31'}]}"
      ]
     },
     "execution_count": 174,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "weather(city='350181',extensions=\"base\")\n",
    "\n",
    "## 出行首先要先了解天气情况"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 批量请求"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 175,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "[{'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011224232138158765360440500020235861187',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.125',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}},\n",
       " {'status': 200,\n",
       "  'body': {'suggestion': {'keywords': {}, 'cities': {}},\n",
       "   'info': 'OK',\n",
       "   'status': '1',\n",
       "   'count': '888',\n",
       "   'pois': [{'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFKKSDDS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.511528,39.270463',\n",
       "     'distance': '1082',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '0',\n",
       "     'name': '李庄子村兰阳草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJM772Z',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.513958,39.270648',\n",
       "     'distance': '1205',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永清镇北辛溜附近',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080503',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C16BMA',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.480285,39.291357',\n",
       "     'distance': '2509',\n",
       "     'tel': '13363650160',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '永金一桥东500米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/3e517731940c4684ee94acdfb8c39b26',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/8eb4c3eb92489cb32cafa17205dc0112',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/163f3273c7c60016197a2e7912df53df',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;休闲场所;采摘园',\n",
       "     'shopinfo': '0',\n",
       "     'name': '开心草莓采摘园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080501',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLPYFW5',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496816,39.302615',\n",
       "     'distance': '2785',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路225东北100米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;休闲场所;游乐场',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'DIY儿童乐园',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080603',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFLAIP6H',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496230,39.303248',\n",
       "     'distance': '2865',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'seat_ordering': '0', 'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;影剧院;剧场',\n",
       "     'shopinfo': '0',\n",
       "     'name': '向阳禾理想城梦剧场',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B013C0IMLS',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.496593,39.304251',\n",
       "     'distance': '2967',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': '3.5', 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路179号',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/af47a5f4f741f6a3ad170e226f856b92',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '梦想网吧(益昌南路店)',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080119',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFMDQ6D7',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.493187,39.304274',\n",
       "     'distance': '3045',\n",
       "     'tel': '13141201944',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '武隆南路宏益街',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/0fb1662d06ad761b51070fe0ca4c26c5',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;运动场馆;跆拳道场馆',\n",
       "     'shopinfo': '1',\n",
       "     'name': '龙圣跆拳道馆',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080000',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJQZNZW',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497741,39.309459',\n",
       "     'distance': '3519',\n",
       "     'tel': '15210485655',\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌南路268号新旺小区门口',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': [{'url': 'http://store.is.autonavi.com/showpic/67416ad37c69db61c270016fa6f430cc',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/d89fd2e7d4b62cba6187c87cc838bb89',\n",
       "       'title': {},\n",
       "       'provider': {}},\n",
       "      {'url': 'http://store.is.autonavi.com/showpic/dbaae4d6ace1004675ce4f252088ffe6',\n",
       "       'title': {},\n",
       "       'provider': {}}],\n",
       "     'type': '体育休闲服务;体育休闲服务场所;体育休闲服务场所',\n",
       "     'shopinfo': '1',\n",
       "     'name': '熙瑞国际游泳健身会所',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080113',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFM4EHTE',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.495838,39.309940',\n",
       "     'distance': '3600',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': {},\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;运动场馆;台球厅',\n",
       "     'shopinfo': '0',\n",
       "     'name': 'K9台球',\n",
       "     'childtype': {}},\n",
       "    {'typecode': '080308',\n",
       "     'adname': '永清县',\n",
       "     'biz_type': {},\n",
       "     'id': 'B0FFJKVFLQ',\n",
       "     'pname': '河北省',\n",
       "     'importance': {},\n",
       "     'parent': {},\n",
       "     'location': '116.497249,39.310649',\n",
       "     'distance': '3656',\n",
       "     'tel': {},\n",
       "     'biz_ext': {'rating': {}, 'cost': {}},\n",
       "     'shopid': {},\n",
       "     'address': '益昌中路与益昌南路交叉口西南50米',\n",
       "     'poiweight': {},\n",
       "     'cityname': '廊坊市',\n",
       "     'photos': {},\n",
       "     'type': '体育休闲服务;娱乐场所;网吧',\n",
       "     'shopinfo': '0',\n",
       "     'name': '网咖',\n",
       "     'childtype': {}}],\n",
       "   'infocode': '10000'},\n",
       "  'header': {'gsid': '011224232138158765360440500020235861187',\n",
       "   'Vary': 'Accept-Encoding',\n",
       "   'Content-Type': 'application/json;charset=UTF-8',\n",
       "   'Access-Control-Allow-Methods': '*',\n",
       "   'Access-Control-Allow-Origin': '*',\n",
       "   'sc': '0.131',\n",
       "   'Content-Length': 5294,\n",
       "   'Access-Control-Allow-Headers': 'DNT,X-CustomHeader,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,key,x-biz,x-info,platinfo,encr,enginever,gzipped,poiid',\n",
       "   'X-Powered-By': 'ring/1.0.0'}}]"
      ]
     },
     "execution_count": 175,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "parameters = {\n",
    "    \"key\":key,\n",
    "}\n",
    "body ={\n",
    "        \"ops\":[\n",
    "            {\n",
    "                \"url\": \"/v3/place/around?offset=10&page=1&key=c48d7391025d651c4a078f7fa0b299d9&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "            },\n",
    "            \n",
    "                {\n",
    "                \"url\": \"/v3/place/around?offset=10&page=1&key=c48d7391025d651c4a078f7fa0b299d9&location=116.50394379585519,39.278209477408794&output=json&radius=100000&types=080000\"\n",
    "            }\n",
    "            \n",
    "        ]\n",
    "        \n",
    "    }\n",
    "r=requests.get(\"https://restapi.amap.com/v3/batch?\",params=parameters,json=body)\n",
    "data = r.json()\n",
    "data"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 输入提示"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 176,
   "metadata": {},
   "outputs": [],
   "source": [
    "def input_q(keywords,types,location=None,city=None,citylimit=None,datatype=None,sig=None)->dict:\n",
    "    url = 'https://restapi.amap.com/v3/assistant/inputtips?parameters'\n",
    "    params = {\n",
    "        'key':key,\n",
    "        'keywords':keywords,\n",
    "        'types':types,\n",
    "        'location':location,\n",
    "        'city':city,\n",
    "        'citylimit':False,\n",
    "        'datatype':datatype,\n",
    "        'output':'json'\n",
    "    }\n",
    "    response = requests.get(url,params=params)\n",
    "    data = response.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 177,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'status': '1',\n",
       " 'count': '10',\n",
       " 'info': 'OK',\n",
       " 'infocode': '10000',\n",
       " 'tips': [{'id': [],\n",
       "   'name': '自助餐',\n",
       "   'district': [],\n",
       "   'adcode': [],\n",
       "   'location': [],\n",
       "   'address': [],\n",
       "   'typecode': [],\n",
       "   'city': []},\n",
       "  {'id': 'B0FFF922AF',\n",
       "   'name': '大哥笑自助烤肉(启洪假日城市店)',\n",
       "   'district': '云南省昆明市五华区',\n",
       "   'adcode': '530102',\n",
       "   'location': '102.657423,25.059702',\n",
       "   'address': '昌源中路启鸿假日城市嘉悦购物广场K栋3层(昌源中路与科锦路交叉处)',\n",
       "   'typecode': '050118',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFH0I38Z',\n",
       "   'name': '重庆土贼自助老火锅(顺城店)',\n",
       "   'district': '云南省昆明市五华区',\n",
       "   'adcode': '530102',\n",
       "   'location': '102.706174,25.036590',\n",
       "   'address': '大观街道东风西路19号五华大厦1层',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFMBQ4OK',\n",
       "   'name': '海客牛排海鲜自助餐',\n",
       "   'district': '云南省昆明市官渡区',\n",
       "   'adcode': '530111',\n",
       "   'location': '102.769019,24.970576',\n",
       "   'address': '大都摩托天购物中心4楼',\n",
       "   'typecode': '050000',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGEGO97',\n",
       "   'name': '索菲特大酒店自助餐',\n",
       "   'district': '云南省昆明市西山区',\n",
       "   'adcode': '530112',\n",
       "   'location': '102.701478,25.023231',\n",
       "   'address': '环城南路777号昆明索菲特大酒店49楼',\n",
       "   'typecode': '050200',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGP1UHQ',\n",
       "   'name': '爱尚烤自助海鲜烤肉涮涮锅(关上店)',\n",
       "   'district': '云南省昆明市官渡区',\n",
       "   'adcode': '530111',\n",
       "   'location': '102.738273,25.004494',\n",
       "   'address': '关上街道宝海路与日新路交叉口银海尚御幸福广场S1栋5层',\n",
       "   'typecode': '050117',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFGG40HT',\n",
       "   'name': '麦瑞缇牛排自助',\n",
       "   'district': '云南省昆明市五华区',\n",
       "   'adcode': '530102',\n",
       "   'location': '102.712548,25.036671',\n",
       "   'address': '祥云街53号2楼',\n",
       "   'typecode': '050211',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFA6W2D',\n",
       "   'name': '莱茵家乐自助餐厅(新西南广场)',\n",
       "   'district': '云南省昆明市五华区',\n",
       "   'adcode': '530102',\n",
       "   'location': '102.715483,25.041901',\n",
       "   'address': '人民中路17号新西南广场F6层',\n",
       "   'typecode': '050211',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFFRZUSK',\n",
       "   'name': '佳客来牛排自助(正义坊店)',\n",
       "   'district': '云南省昆明市五华区',\n",
       "   'adcode': '530102',\n",
       "   'location': '102.709675,25.039541',\n",
       "   'address': '正义路正义坊南馆3层',\n",
       "   'typecode': '050211',\n",
       "   'city': []},\n",
       "  {'id': 'B0FFKP3ZQP',\n",
       "   'name': '吉布鲁快乐自助',\n",
       "   'district': '云南省昆明市西山区',\n",
       "   'adcode': '530112',\n",
       "   'location': '102.681792,25.043398',\n",
       "   'address': '人民西路与西园路交汇处云投财富广场(悦云天地)中三层',\n",
       "   'typecode': '050000',\n",
       "   'city': []}]}"
      ]
     },
     "execution_count": 177,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "自助餐 = input_q('自助餐','050301','116.716534,23.371476',city='昆明',datatype='all')\n",
    "自助餐"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 地理围栏"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 178,
   "metadata": {},
   "outputs": [],
   "source": [
    "def create(name=\"围栏\",center=\"116.716534,23.371476\",radius=\"1000\",\n",
    "           valid_time=\"2020-06-06\",desc= \"围栏描述\"):\n",
    "    \"\"\"create创建一个地理围栏\"\"\"\n",
    "    parameters = {\n",
    "        \"key\":key,\n",
    "    }\n",
    "    body ={\n",
    "        \"name\": name,\n",
    "        \"center\": \"116.716534,23.371476\",\n",
    "        \"radius\": \"1000\",\n",
    "        \"enable\": \"true\",\n",
    "        \"valid_time\": \"2020-06-06\",\n",
    "        \"repeat\": \"Mon,Tues,Wed,Thur,Fri,Sat,Sun\",\n",
    "        \"time\": \"00:00,11:59;13:00,20:59\",\n",
    "        \"desc\": \"围栏范围描述\",\n",
    "        \"alert_condition\": \"enter;leave\"}\n",
    "    r = requests.post(\"https://restapi.amap.com/v4/geofence/meta\",params=parameters,json=body)\n",
    "    data = r.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 179,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'message': '新增围栏已存在', 'status': '106'},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 179,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "create(name=\"围栏2\",center=geocode(\"美树星城\"))"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 轨迹纠编"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 180,
   "metadata": {},
   "outputs": [],
   "source": [
    "def driving():\n",
    "    parameters = {\n",
    "        \"key\":key,\n",
    "    }\n",
    "    body = [\n",
    "        {\n",
    "            \"x\":116.449429,\n",
    "            \"y\":40.014844,\n",
    "            \"sp\":4,\n",
    "            \"ag\":110,\n",
    "            \"tm\":1478831753},\n",
    "        {\n",
    "            \"x\":116.449639,\n",
    "            \"y\":40.014776,\n",
    "            \"sp\":3,\n",
    "            \"ag\":110,\n",
    "            \"tm\":23},\n",
    "        {\n",
    "            \"x\":116.449859,\n",
    "            \"y\":40.014716,\n",
    "            \"sp\":3,\n",
    "            \"ag\":111,\n",
    "            \"tm\":33},\n",
    "        {\n",
    "            \"x\":116.450074,\n",
    "            \"y\":40.014658,\n",
    "            \"sp\":3,\n",
    "            \"ag\":110,\n",
    "            \"tm\":31},\n",
    "         {\n",
    "            \"x\":116.450273,\n",
    "            \"y\":40.014598,\n",
    "            \"sp\":3,\n",
    "            \"ag\":111,\n",
    "            \"tm\":20}]\n",
    "    r = requests.get(\"http://restapi.amap.com/v4/grasproad/driving\", params=parameters,json=body)\n",
    "    data = r.json()\n",
    "    return data"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 181,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'data': {'distance': 33.0,\n",
       "  'points': [{'x': 116.44942000249563, 'y': 40.014843356125866},\n",
       "   {'x': 116.44945705955585, 'y': 40.01453960973057}]},\n",
       " 'errcode': 0,\n",
       " 'errdetail': None,\n",
       " 'errmsg': 'OK',\n",
       " 'ext': None}"
      ]
     },
     "execution_count": 181,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "driving()"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- 根据坐标点抓取道路，即根据给定的坐标点、车辆的方位角以及行驶速度，将用户的轨迹纠偏到路上，从而返回用户实际驾车经过的道路坐标。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "# 产品设计"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 1.所需要的高德api功能"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "* IP定位\n",
    "* 天气查询\n",
    "* poi搜索\n",
    "* 交通态势\n",
    "* 路线规划"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 2.产品需求"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- 当你需要出去玩的时候，首先想的是出行方式，是做地铁还是公交，需要可以评估那种方式更节约时间。\n",
    "- 出去肯定也需要了解好天气和交通状况。\n",
    "- 到了那边想了解一下周边，搜索有什么好吃的。"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "## 3.产品描述"
   ]
  },
  {
   "cell_type": "markdown",
   "metadata": {},
   "source": [
    "- 这是一款出行攻略app，可以通过高德地图ip定位、天气查询功能，来了解当地天气情况。要是自驾游的话，可以通过交通态势、路线规划来了解到某一路段的堵车情况。\n",
    "- 另外也可以乘坐交通工具出门，如地铁、公交车之类的，高德地图的路线规划功能，也可以很快的为你找到适合出行的方式。\n",
    "- 到了目的地，可以通过poi搜索来了解周边，看看有什么好吃的好玩的，高德地图api让你畅快游玩，用的开心，玩的开心。"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
